SuffixedID

class emmet.core.mpid_ext.SuffixedID(**data)

Bases: BaseModel

Handle suffixed identifier formats (ex., thermo IDs).

Parameters:
  • identifier (Annotated[MPID | AlphaID, BeforeValidator(func=~emmet.core.types.typing._fault_tolerant_id_serde, json_schema_input_type=PydanticUndefined), PlainSerializer(func=~emmet.core.types.typing.<lambda>, return_type=PydanticUndefined, when_used=always)])

  • suffix (Enum)

  • separator (str)

classmethod from_str(idx)

Ensure the class can be instantiated from a string or dict.

Return type:

Self

Parameters:

idx (str)

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].