moyopy._base#

Classes#

Module Contents#

class moyopy._base.Cell(basis: list[list[float]], positions: list[list[float]], numbers: list[int])[source]#
property basis: list[list[float]][source]#
property positions: list[list[float]][source]#
property numbers: list[int][source]#
property num_atoms: int[source]#
serialize_json() str[source]#

Serialize the cell to a JSON string

classmethod deserialize_json(json_str: str) Cell[source]#

Deserialize a JSON string to a Cell object

as_dict() dict[str, Any][source]#

Convert the cell to a dictionary

classmethod from_dict(data: dict[str, Any]) Cell[source]#

Create a cell from a dictionary

class moyopy._base.CollinearMagneticCell(basis: list[list[float]], positions: list[list[float]], numbers: list[int], magnetic_moments: list[float])[source]#
property basis: list[list[float]][source]#
property positions: list[list[float]][source]#
property numbers: list[int][source]#
property magnetic_moments: list[float][source]#
property num_atoms: int[source]#
serialize_json() str[source]#

Serialize the cell to a JSON string

classmethod deserialize_json(json_str: str) Cell[source]#

Deserialize a JSON string to a Cell object

as_dict() dict[str, Any][source]#

Convert the cell to a dictionary

classmethod from_dict(data: dict[str, Any]) Cell[source]#

Create a cell from a dictionary

class moyopy._base.NonCollinearMagneticCell(basis: list[list[float]], positions: list[list[float]], numbers: list[int], magnetic_moments: list[list[float]])[source]#
property basis: list[list[float]][source]#
property positions: list[list[float]][source]#
property numbers: list[int][source]#
property magnetic_moments: list[list[float]][source]#
property num_atoms: int[source]#
serialize_json() str[source]#

Serialize the cell to a JSON string

classmethod deserialize_json(json_str: str) Cell[source]#

Deserialize a JSON string to a Cell object

as_dict() dict[str, Any][source]#

Convert the cell to a dictionary

classmethod from_dict(data: dict[str, Any]) Cell[source]#

Create a cell from a dictionary

class moyopy._base.Operations[source]#
property rotations: list[list[list[float]]][source]#
property translations: list[list[float]][source]#
property num_operations: int[source]#
__len__() int[source]#
class moyopy._base.MagneticOperations[source]#
property rotations: list[list[list[float]]][source]#
property translations: list[list[float]][source]#
property time_reversals: list[bool][source]#
property num_operations: int[source]#
__len__() int[source]#