print

Function: equal_group

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

equal_group compares two groups element by element, returns True if both groups have exactly the same symmetry operators. This implies that the same group on two different settings returns False.

function call

r = equal_group(spg_1 : dict,spg_2 : dict)

VariableTypeDescription
spg_1dictSpace group. It must be a dictionary of type spg_type or superspacegroup_type. It can be generated with the function set_spacegroup.
spg_2dictSpace group. It must be a dictionary of type spg_type or superspacegroup_type. It can be generated with the function set_spacegroup.
rtuple

The tuple returned by the function.

r[0] : int, error code. If non-zero, an error has occurred.

r[1] : str, error message.

r[2]: bool, True if both groups have exactly the same symmetry operators.

examples

Example 1: Same group in two different settings.


Example 2: Same group from two different sets of generators.