ImageD11.rgb_colors.test.test_rgb_colors module#
IPF colours: check colours (ipf_oracle.json, from tools/make_shipped.py): exact, and MTEX 7.2, one colour for every equivalent ubi, rhombohedral == hexagonal axes, the strain warning.
- class ImageD11.rgb_colors.test.test_rgb_colors.TestHueTable(methodName='runTest')#
Bases:
TestCasethe even-hue table is made once per key, from the first grain
- figure(k, gs)#
dot products of the unit vectors the colour uses: planes, corners, centre and hue reference, (n,m,m)
- test_first_grain()#
the colours do not depend on which grain made the table
- test_same_figure()#
the sector is the same figure in every metric its group allows
- class ImageD11.rgb_colors.test.test_rgb_colors.TestInvariance(methodName='runTest')#
Bases:
TestCase- test_equivalent_ubis()#
a strained grain, indexed every equivalent way, has one colour
- test_rhombohedral_axes()#
an R crystal on rhombohedral axes has the colours of its hexagonal axes
- class ImageD11.rgb_colors.test.test_rgb_colors.TestKeyImage(methodName='runTest')#
Bases:
TestCase- test_area()#
the sector drawn in equal area covers 4 pi / (operations folded with)
- test_labels()#
- test_rhombohedral_axes()#
- class ImageD11.rgb_colors.test.test_rgb_colors.TestOracle(methodName='runTest')#
Bases:
TestCase- test_mtex_check_colours()#
each check direction of each key, put along z by turning the grain
- test_sym_u_groups()#
- class ImageD11.rgb_colors.test.test_rgb_colors.TestStrain(methodName='runTest')#
Bases:
TestCase- test_symmetric_metric()#
- test_warning()#
- ImageD11.rgb_colors.test.test_rgb_colors.cell_ubi(cell)#
a ubi (rows a, b, c) of cell a b c alpha beta gamma (deg)
- ImageD11.rgb_colors.test.test_rgb_colors.proper(ops)#
- ImageD11.rgb_colors.test.test_rgb_colors.rotations(rng, n)#
- ImageD11.rgb_colors.test.test_rgb_colors.turn_to_z(v, spin)#
a rotation taking v onto +z, then turning by spin about z