httk.atomistic.models.species.api¶
The minimal canonical species interface for httk-atomistic.
Classes¶
Abstract base class for the canonical single-species interface. |
Module Contents¶
- class httk.atomistic.models.species.api.SpeciesAPI[source]¶
Bases:
abc.ABCAbstract base class for the canonical single-species interface.
It declares the accessors mirroring the OPTIMADE
speciesfields that every species backend produces from its own native representation and every species view builds its presentation from:name,chemical_symbols,concentration, and the optionalmass,attached,nattached, andoriginal_name.- property charges: tuple[fractions.Fraction | None, Ellipsis] | None[source]¶
Assigned charge numbers for the constituents, or
Noneif unstated.A
Noneelement means the charge of that constituent is unstated; whole-Nonemeans no constituent charges are stated. Values use elementary-charge units, for example a formal oxidation state.- Returns:
The constituent charges, or
Nonewhen unstated.- Return type:
tuple[fractions.Fraction | None, Ellipsis] | None
- property spins: tuple[fractions.Fraction | None, Ellipsis] | None[source]¶
Idealized signed spins assigned to the constituents, or
Noneif unstated.A
Noneelement means the spin of that constituent is unstated; whole-Nonemeans no constituent spins are stated. This is distinct from a calculated site magnetic moment.- Returns:
The constituent spins, or
Nonewhen unstated.- Return type:
tuple[fractions.Fraction | None, Ellipsis] | None
- property labels: tuple[str | None, Ellipsis] | None[source]¶
Free-form per-constituent labels, or
Noneif unstated.A
Noneelement means that constituent has no stated label; whole-Nonemeans no constituent labels are stated.
- property concentration: tuple[fractions.Fraction, Ellipsis][source]¶
- Abstractmethod:
- property is_ordered: bool[source]¶
Return whether every constituent has unit concentration.
- Returns:
Truewhen all concentrations are exactlyFraction(1).- Return type: