ImageD11.sym_u module#

ImageD11.sym_u.cartesian(grp, B)#

The operations of grp as rotations S of the crystal frame of B: for ubi = (U.B)^-1, (op.ubi)^-1 = U.S.B Returns an array (n, 3, 3) in the order of grp.group

ImageD11.sym_u.cubic()#

P32

ImageD11.sym_u.find_uniq_hkls(hkls, grp, func=<function hklmax>)#
ImageD11.sym_u.find_uniq_u(u, grp, debug=0, func=<function trace>)#
ImageD11.sym_u.fmt(c)#
ImageD11.sym_u.generate_group(*args)#
ImageD11.sym_u.getgroup(s)#

convert a user supplied string to a group … a little vague still

class ImageD11.sym_u.group(tol=1e-05)#

Bases: object

An abstract mathematical finite(?) point rotation groups

additem(item)#

add a new member

comp(x, y)#

Compare two things for equality

isMember(item)#

Decide if item is already in the group

makegroup()#

ensure all items = op(x,y) are in group

op(x, y)#

Normally multiplication ? Means of generating new thing from two others

ImageD11.sym_u.hexagonal()#

P6/mmm 191

ImageD11.sym_u.hklmax(h, hmax=1000)#
ImageD11.sym_u.lattice_group(spacegroup, cell_choice='standard')#

Rotations of the point group of the lattice (holohedry) of a space group (number 1-230), as the same group objects as cubic(), hexagonal(), etc. Peak positions only see the lattice: these are the orientations that index the same peaks. It contains laue_rotations(spacegroup, cell_choice). cell_choice is “standard” or “rhombohedral” (R groups on rhombohedral axes)

ImageD11.sym_u.laue_class(spacegroup, cell_choice='standard')#

The Laue class of a space group (number 1-230), a key of laue_generators. cell_choice “rhombohedral” puts R space groups on rhombohedral axes.

ImageD11.sym_u.laue_rotations(spacegroup, cell_choice='standard')#

Rotations of the Laue class of a space group (number 1-230). These are the orientations diffraction cannot tell apart (Friedel’s law). cell_choice is “standard” or “rhombohedral” (R groups on rhombohedral axes) Returns a group acting on ubi as op.ubi, like cubic() etc

ImageD11.sym_u.m_from_string(s)#

Creates a symmetry operator from a string

ImageD11.sym_u.m_to_string(m)#

Creates a symmetry operator string from a matrix

ImageD11.sym_u.monoclinic_a()#
ImageD11.sym_u.monoclinic_b()#
ImageD11.sym_u.monoclinic_c()#
ImageD11.sym_u.orthorhombic()#

P222 16

ImageD11.sym_u.rhombohedralP()#

R3 primitive

ImageD11.sym_u.test()#
ImageD11.sym_u.tetragonal()#

P4 75

class ImageD11.sym_u.trans_group(tol=1e-05)#

Bases: group

Translation group (eg crystal lattice)

FIXME - this is mostly done in lattice_reduction.py instead now

additem(x)#

Do lattice reduction before adding as infinite group

isMember(x)#

Decide if item is already in the group

mod(x, y)#

Remove y from x to give smallest possible result Find component of x || to y and remove it

op(x, y)#

Means of generating new thing from two others In this case add them and mod by group members

reduce(v)#

Perform lattice reduction

ImageD11.sym_u.triclinic()#
ImageD11.sym_u.trigonal()#

P321 150

ImageD11.sym_u.trigonalH()#

P321 150

ImageD11.sym_u.trigonalP()#

R3 primitive

ImageD11.sym_u.twin_operators(spacegroup, cell_choice='standard')#

One rotation per coset of laue_rotations() in lattice_group(), the identity first. Applied as op.ubi, they give the orientations that index the same peak positions but predict different intensities (the “flipmats” of a lattice-only indexing). Only the identity when the Laue class is the lattice group (e.g. m-3m); two for 4/m, m-3, 6/m or the Dauphine twin of quartz (-3m1); four for -3 on hexagonal axes. cell_choice is “standard” or “rhombohedral” (R groups on rhombohedral axes) Returns a list of 3x3 matrices

ImageD11.sym_u.twin_variants(ubi, spacegroup, cell_choice='standard')#

The twin variants of ubi: op.ubi for each op of twin_operators(), ubi first. cell_choice is “standard” or “rhombohedral” (R groups on rhombohedral axes) Returns a list of ubi matrices