from_dict#
- static ClusterSpecs.from_dict(data: json, xtal_prim: libcasm.xtal._xtal.Prim, prim_factor_group: CASM::group::Group<CASM::xtal::SymOp>, integral_site_coordinate_symgroup_rep: list[libcasm.xtal._xtal.IntegralSiteCoordinateRep]) ClusterSpecs #
Construct ClusterSpecs from a Python dict
See the CASM documentation for the ClusterSpecs format.
- Parameters:
data (dict) – The ClusterSpecs as a Python dict
xtal_prim (Prim) – The
libcasm.xtal.Prim
prim_factor_group (SymGroup) – The prim factor group
integral_site_coordinate_symgroup_rep (list[IntegralSiteCoordinateRep]) – Symmetry representation for IntegralSiteCoordinate tranformation
- Returns:
cluster_specs – The ClusterSpecs object
- Return type: