| Home | Trees | Indices | Help |
|
|---|
|
|
structureparser.StructureParser --+
|
P_cif
Simple parser for CIF structure format.
Reads Structure from the first block containing _atom_site_label key.
Following blocks, if any are ignored.
Data members:
format -- structure format name
ciffile -- instance of CifFile from PyCifRW
stru -- Structure instance used for cif input or output
Data members used for input only:
spacegroup -- instance of SpaceGroup used for symmetry expansion
eau -- instance of ExpandAsymmetricUnit from SymmetryUtilities
asymmetric_unit -- list of atom instances for the original asymmetric
unit in the CIF file
labelindex -- dictionary mapping unique atom label to index of atom
in self.asymmetric_unit
cif_sgname -- space group name obtained by looking up the value of
_space_group_name_Hall, _symmetry_space_group_name_Hall,
_space_group_name_H-M_alt, _symmetry_space_group_name_H-M
items. None when neither is defined.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_atom_setters =
|
|||
BtoU = 0.0126651479553
|
|||
_psymb = re.compile(r'
|
|||
|
|||
Find translators of CifLoop items to data in Atom instance. Static method. cifloop -- instance of CifLoop Return a tuple of (prop_fset, prop_ignored) where prop_fset -- dictionary of property with translating function prop_ignored -- list of properties that cannot be translated |
|
Create Structure instance from a string in CIF format. Return Structure instance or raise StructureFormatError.
|
Parse list of lines in CIF format. lines -- list of strings stripped of line terminator Return Structure instance or raise StructureFormatError.
|
Create Structure from an existing CIF file. filename -- path to structure file Return Structure object. Raise StructureFormatError or IOError.
|
Translate CIF file block, skip blocks without _atom_site_label. Updates data members stru, eau. blockname -- name of top level block in self.ciffile No return value. |
Obtain lattice parameters from a CifBlock. This method updates self.stru.lattice. block -- instance of CifBlock No return value. |
Obtain atoms in asymmetric unit from a CifBlock. This method inserts Atom instances to self.stru and updates labelindex dictionary. block -- instance of CifBlock No return value. |
Obtain value of anisotropic thermal displacements from a CifBlock. This method updates U members of Atom instances in self.stru. The labelindex dictionary has to be defined beforehand. block -- instance of CifBlock No return value. |
Process symmetry operations from a CifBlock. The method updates spacegroup and eau data according to symmetry operations defined in _space_group_symop_operation_xyz or _symmetry_equiv_pos_as_xyz items in CifBlock. block -- instance of CifBlock No return value. |
Perform symmetry expansion of self.stru using self.spacegroup. This method updates data in stru and eau. No return value. |
Convert Structure stru to a list of lines in basic CIF format. Return list of strings.
|
|
|||
_atom_setters
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Fri Apr 10 19:10:01 2009 | http://epydoc.sourceforge.net |