Enums#

UnitEnum#

UnitEnum(value[, names, module, qualname, ...])

Extension of IntEnum to be used for classified values of stratigraphic units and lithologies in models to allow easy selections.

UnitEnum.select_units(units)

Select units by name.

UnitEnum.select_values(values)

Select units by value.

UnitEnum.to_dict([key])

Create a mapping dictionary from UnitEnum with "unit": "value" or "value": "unit" mapping.