MagnetismSummary

class emmet.core.summary.MagnetismSummary(**data)

Bases: PropModel

Parameters:
  • prop_origins (Annotated[list[PropertyOrigin | None], SkipJsonSchema()])

  • is_magnetic (bool | None)

  • ordering (str | None)

  • total_magnetization (float | None)

  • total_magnetization_normalized_vol (float | None)

  • total_magnetization_normalized_formula_units (float | None)

  • num_magnetic_sites (int | None)

  • num_unique_magnetic_sites (int | None)

  • types_of_magnetic_species (list[Annotated[ElementTypeVar, BeforeValidator(func=~emmet.core.types.pymatgen_types.element_adapter.<lambda>, json_schema_input_type=PydanticUndefined), WrapSerializer(func=~emmet.core.types.pymatgen_types.element_adapter.<lambda>, return_type=str, when_used=always)]] | None)

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 initialize 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.