Package schrodinger :: Package application :: Package matsci :: Package nano :: Module xtal :: Class SpaceGroup
[hide private]
[frames] | no frames]

Class SpaceGroup

object --+
         |
        SpaceGroup

Collect the properties of a space group.

Instance Methods [hide private]
 
__init__(self, definition_id, space_group_id, ichoice, num_choices, space_group_short_name, space_group_full_name, point_group_name, centering_opers, primary_opers, symmetry_opers, centering_opers_strs, primary_opers_strs, symmetry_opers_strs, crystal_system, xyzasu, spgsetting)
Create an instance.
 
__repr__(self)
Representation of this class.
 
printSymmetryOpers(self, logger=None)
Log a formatted print of all of the symmetry operators for this space group.
 
printDatabaseEntry(self, logger=None)
Print a space group object in mmspg/spgbase.dat format.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  DEFINITION_ID = 'Def. ID'
  SPACE_GROUP_ID = 'Space Group ID'
  CRYSTAL_SYSTEM = 'Crystal System'
  SHORT_HERMANN_MAUGUIN_SYMBOL = 'Short H.-M. Symbol'
  FULL_HERMANN_MAUGUIN_SYMBOL = 'Full H.-M. Symbol'
  POINT_GROUP_NAME = 'Point Group'
  NUM_CENTERING_OPERS = 'N Centering Ops.'
  NUM_PRIMARY_OPERS = 'N Primary Ops.'
  NUM_SYMMETRY_OPERS = 'N Symmetry Ops.'
  CENTERING_OPERS = 'Centering Operators'
  PRIMARY_OPERS = 'Primary Operators'
  SYMMETRY_OPERS = 'Symmetry Operators'
  SPACE_GROUP_SETTING = 'Space Group Setting'
  ID_TAG = 'spgid '
  SHORT_NAME_TAG = 'sspgname '
  FULL_NAME_TAG = 'fspgname '
  POINT_GROUP_TAG = 'pgname '
  CRYSTAL_SYSTEM_TAG = 'crysym '
  SETTING_TAG = 'setting '
  ASU_TAG = 'xyzasu '
  PRIMARY_OPERATIONS_TAG = 'primoper '
  CENTERING_OPERATIONS_TAG = 'centoper '
  END_OF_DEF_TAG = 'endofdef'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, definition_id, space_group_id, ichoice, num_choices, space_group_short_name, space_group_full_name, point_group_name, centering_opers, primary_opers, symmetry_opers, centering_opers_strs, primary_opers_strs, symmetry_opers_strs, crystal_system, xyzasu, spgsetting)
(Constructor)

 

Create an instance.

Parameters:
  • definition_id (int) - the id of the definition, i.e. a number ranging from 1 to 291 (some of the 230 space groups have more than a single unit cell definition).
  • space_group_id (int) - the id of the space group, i.e. a number ranging from 1 to 230, which the number of space groups.
  • ichoice (int) - the space group setting index
  • num_choices (int) - the number of different unit cell settings for this space group. For example, a setting may be a choice of axes, etc.
  • space_group_short_name (string) - the short Hermann-Mauguin symbol of the space group.
  • space_group_full_name (string) - the full Hermann-Mauguin symbol of the space group.
  • point_group_name (string) - the name of the point group of the space group.
  • centering_opers (list of numpy.matrix) - contains the centering matricies of the space group.
  • primary_opers (list of numpy.matrix) - contains the primary matricies of the space group.
  • symmetry_opers (list of numpy.matrix) - contains the symmetry matricies of the space group, i.e. the combinations of the centering and primary matricies.
  • centering_opers_strs (list) - string representation of the centering operators.
  • primary_opers_strs (list) - string representation of the primary operators.
  • symmetry_opers_strs (list) - string representation of the symmetry operators, i.e. the combination of the centering and primary string representations.
  • crystal_system (one of the sevel crystal system objects) - the crystal system.
  • xyzasu (str) - the xyzasu descriptor which will be parsed but not used
  • spgsetting (str) - the setting of the space group
Overrides: object.__init__

__repr__(self)
(Representation operator)

 

Representation of this class.

Overrides: object.__repr__

printSymmetryOpers(self, logger=None)

 

Log a formatted print of all of the symmetry operators for this space group.

Parameters:
  • logger (logging.getLogger) - output logger

printDatabaseEntry(self, logger=None)

 

Print a space group object in mmspg/spgbase.dat format.

Parameters:
  • logger (logging.getLogger) - output logger