httk.atomistic.models.species.plain¶
Backend wrapping a validated OPTIMADE species dict.
Classes¶
Backend for a species backed by an OPTIMADE species dict. |
Module Contents¶
- class httk.atomistic.models.species.plain.PlainSpecies(obj, **hints)[source]¶
Bases:
httk.atomistic.models.species.backend.SpeciesBackendBackend for a species backed by an OPTIMADE species dict.
The native representation is a mapping with the OPTIMADE
speciesfields; the requiredname/chemical_symbols/concentrationare validated conservatively on construction. The accessors read the corresponding fields (optional fields absent from the dict read asNone), andunwrapreturns the original dict.- property concentration: tuple[fractions.Fraction, Ellipsis][source]¶
Return the constituent concentrations.
- Returns:
The concentrations in constituent order.
- Return type:
tuple[fractions.Fraction, Ellipsis]
- property concentration_precision: tuple[fractions.Fraction | None, Ellipsis] | None[source]¶
Return the concentration precision metadata.
- Returns:
Per-constituent precision, or
Nonewhen unavailable.- Return type:
tuple[fractions.Fraction | None, Ellipsis] | None
- property attached: tuple[str, Ellipsis] | None[source]¶
Return the attached constituent symbols, if stated.
- property original_name: str | None[source]¶
Return the original source name, if stated.
- Returns:
The original name, or
Nonewhen unstated.- Return type:
str | None
- property charges: tuple[fractions.Fraction | None, Ellipsis] | None[source]¶
Return the constituent charges, if stated.
- Returns:
The charges, or
Nonewhen unstated.- Return type:
tuple[fractions.Fraction | None, Ellipsis] | None
- property spins: tuple[fractions.Fraction | None, Ellipsis] | None[source]¶
Return the constituent spins, if stated.
- Returns:
The spins, or
Nonewhen unstated.- Return type:
tuple[fractions.Fraction | None, Ellipsis] | None