# PropertyPhase — OpenFF Evaluator documentation

# PropertyPhase

class `openff.evaluator.datasets.``PropertyPhase`(value)

  An enum describing the phase that a property was collected in.

  Examples

  Properties measured in multiple phases (e.g. enthalpies of vaporization) can be defined be concatenating PropertyPhase enums:

      >>> gas_liquid_phase = PropertyPhase.Gas | PropertyPhase.Liquid

  `__init__`()

    Initialize self. See help(type(self)) for accurate signature.

  Attributes

  `Gas` |
  `Liquid` |
  `Solid` |
  `Undefined` |

  classmethod `from_string`(enum_string)

    Parses a phase enum from its string representation.

    Parameters

      enum_string (str) – The str representation of a PropertyPhase

    Returns

      The created enum

    Return type

      PropertyPhase

    Examples

    To round-trip convert a phase enum: >>> phase = PropertyPhase.Liquid | PropertyPhase.Gas >>> phase_str = str(phase) >>> parsed_phase = PropertyPhase.from_string(phase_str)