nodes: 0, module; 1, function_definition; 2, function_name:results; 3, parameters; 4, block; 5, identifier:self; 6, identifier:Pc; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, expression_statement; 11, expression_statement; 12, expression_statement; 13, return_statement; 14, comment:r"""
          This method determines which pores and throats are filled with invading
          phase at the specified capillary pressure, and creates several arrays
          indicating the occupancy status of each pore and throat for the given
          pressure.
  
          Parameters
          ----------
          Pc : scalar
              The capillary pressure for which an invading phase configuration
              is desired.
  
          Returns
          -------
          A dictionary containing an assortment of data about distribution
          of the invading phase at the specified capillary pressure.  The data
          include:
  
          **'pore.occupancy'** : A value between 0 and 1 indicating the
          fractional volume of each pore that is invaded.  If no late pore
          filling model was applied, then this will only be integer values
          (either filled or not).
  
          **'throat.occupancy'** : The same as 'pore.occupancy' but for throats.
  
          This dictionary can be passed directly to the ``update`` method of
          the *Phase* object. These values can then be accessed by models
          or algorithms.
  
          """; 15, assignment; 16, assignment; 17, assignment; 18, assignment; 19, assignment; 20, identifier:inv_phase; 21, identifier:Psatn; 22, comparison_operator:self['pore.invasion_pressure'] <= Pc; 23, identifier:Tsatn; 24, comparison_operator:self['throat.invasion_pressure'] <= Pc; 25, identifier:inv_phase; 26, dictionary; 27, subscript; 28, call; 29, subscript; 30, call; 31, subscript; 32, identifier:Pc; 33, subscript; 34, identifier:Pc; 35, identifier:inv_phase; 36, string; 37, attribute; 38, argument_list; 39, identifier:inv_phase; 40, string; 41, attribute; 42, argument_list; 43, identifier:self; 44, string; 45, identifier:self; 46, string; 47, string_content:pore.occupancy; 48, identifier:sp; 49, identifier:array; 50, identifier:Psatn; 51, keyword_argument; 52, string_content:throat.occupancy; 53, identifier:sp; 54, identifier:array; 55, identifier:Tsatn; 56, keyword_argument; 57, string_content:pore.invasion_pressure; 58, string_content:throat.invasion_pressure; 59, identifier:dtype; 60, identifier:float; 61, identifier:dtype; 62, identifier:float
code: def results(self, Pc):
          r"""
          This method determines which pores and throats are filled with invading
          phase at the specified capillary pressure, and creates several arrays
          indicating the occupancy status of each pore and throat for the given
          pressure.
  
          Parameters
          ----------
          Pc : scalar
              The capillary pressure for which an invading phase configuration
              is desired.
  
          Returns
          -------
          A dictionary containing an assortment of data about distribution
          of the invading phase at the specified capillary pressure.  The data
          include:
  
          **'pore.occupancy'** : A value between 0 and 1 indicating the
          fractional volume of each pore that is invaded.  If no late pore
          filling model was applied, then this will only be integer values
          (either filled or not).
  
          **'throat.occupancy'** : The same as 'pore.occupancy' but for throats.
  
          This dictionary can be passed directly to the ``update`` method of
          the *Phase* object. These values can then be accessed by models
          or algorithms.
  
          """
          Psatn = self['pore.invasion_pressure'] <= Pc
          Tsatn = self['throat.invasion_pressure'] <= Pc
          inv_phase = {}
          inv_phase['pore.occupancy'] = sp.array(Psatn, dtype=float)
          inv_phase['throat.occupancy'] = sp.array(Tsatn, dtype=float)
          return inv_phase