httk.atomistic.integrations.pymatgen.view¶
Pymatgen Structure view for the httk.atomistic structure family.
Classes¶
Present a structure-like value as a pymatgen |
Module Contents¶
- class httk.atomistic.integrations.pymatgen.view.PymatgenStructureView(obj, **hints)[source]¶
Bases:
httk.atomistic.models.structure.view.StructureView,pymatgen.core.StructurePresent a structure-like value as a pymatgen
Structure.Charges, spins, partial occupancy, dummy labels, and structure charge are exported, with structure charge passed as an exact
Fraction. Vacancy constituents created for occupancy shortfall are omitted because pymatgen represents the shortfall directly. Masses, labels on elements, attached species, assemblies, and declared chemical composition are rejected rather than discarded;unwrap()recovers the original value behind the backend.- Parameters:
obj (httk.atomistic.models.structure.like.StructureLike) – A structure-like value to present as
Structure.**hints (Any) – Backend-selection hints.