from_cif#
- classmethod Phase.from_cif(filename: str | Path) Phase[source]#
Return a new phase from a Crystallographic Information File (CIF).
- Parameters:
- filename
Path to the *.cif. The phase name is obtained from the file name.
- Returns:
phaseNew phase.
Notes
The file is read using
diffpy.structure‘s CIF file parser.See https://www.iucr.org/resources/cif for details on the CIF file format.