AlloyPairDoc
- class emmet.core.alloys.AlloyPairDoc(**data)
Bases:
EmmetBaseModel- Parameters:
builder_meta (EmmetMeta | None)
alloy_pair (Annotated[AlloyPairTypeVar, BeforeValidator(func=~emmet.core.types.pymatgen_types.alloy_adapter.pop_empty_alloy_pair_structure_keys, json_schema_input_type=PydanticUndefined), WrapSerializer(func=~emmet.core.types.pymatgen_types.alloy_adapter.<lambda>, return_type=~emmet.core.types.pymatgen_types.alloy_adapter.TypedAlloyPairDict, when_used=always)])
pair_id (str)
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
None- Parameters:
self (BaseModel)
context (Any)
- Args:
self: The BaseModel instance. context: The context.