ImageD11.grid_index_parallel module#

ImageD11.grid_index_parallel.doindex(gve, x, y, z, w, gridpars)#

Try to index some g-vectors

ImageD11.grid_index_parallel.domap(pars, colfile, grains, gridpars)#

mapping function - does what makemap.py does, but in a function

ImageD11.grid_index_parallel.domap_robust(pars, colfile, grains, gridpars)#

domap, but a grain whose refinement fails (e.g. a left handed UBI from a fit to too few peaks) is dropped instead of losing the whole batch

ImageD11.grid_index_parallel.grid_index_parallel(fltfile, parfile, tmp, gridpars, translations)#

fltfile containing peaks parfile containing instrument geometry and unit cell tmp - base name for scratch files and results gridpars : dictionary of control parameters (rings to use, etc) translations : list of translation positions to try

Runs a grid index algorithm using pythons multiprocessing module splits workload over processes (blocks of translations to each process) This thread should catch results via a queue

ImageD11.grid_index_parallel.initgrid(fltfile, parfile, tmp, gridpars)#

Sets up a grid indexing by preparing the unitcell for indexing and checking the columns we want are in the colfile

ImageD11.grid_index_parallel.test_many_points(args)#

Grid index - loop over points Places the results in a multiprocessing Queue

class ImageD11.grid_index_parallel.uniq_grain_list(symmetry, toldist, tolangle, grains=None)#

Bases: object

Cope with finding the same grain over and over…

add(grains)#
append_uniq(g)#
ImageD11.grid_index_parallel.wrap_test_many_points(x)#
ImageD11.grid_index_parallel.wrap_test_many_points_init(q)#

This passes the q to the function Something from stackoverflow. It happens during the Pool initializer function