Symmetry#

class anri.crystal.Symmetry(sym_instance)[source]#

Bases: object

Class to hold and manipulate symmetry operators.

Extends Dans_Diffraction.classes_crystal.Symmetry().

Attributes

Symmetry.sgname

Return the name of the spacegroup.

Symmetry.sgno

Return the number of the spacegroup.

Symmetry.sym_ops

Return the symmetry operators.

Methods

Symmetry.from_name(sg_name)

Create instance from a spacegroup name string (e.g., 'Fm-3m').

Symmetry.from_number(sg_number)

Create instance from a spacegroup number (1-230).