ImageD11.sinograms.lima_segmenter module#
- class ImageD11.sinograms.lima_segmenter.SegmenterOptions(cut=1, howmany=100000, pixels_in_spot=3, maskfile='', bgfile='', cores_per_job=16, files_per_core=4)#
Bases:
object- datasetnames = ('limapath', 'analysispath', 'datapath', 'imagefiles', 'sparsefiles')#
- jobnames = ('cut', 'howmany', 'pixels_in_spot', 'maskfile', 'bgfile', 'cores_per_job', 'files_per_core')#
- load(h5name, h5group)#
- save(h5name, h5group)#
- setup()#
- ImageD11.sinograms.lima_segmenter.clean(nnz, row, col, val, config_options=None)#
- class ImageD11.sinograms.lima_segmenter.frmtosparse(mask, dtype)#
Bases:
object
- class ImageD11.sinograms.lima_segmenter.frmtosparse_bslz4(mask, dtype, howmany, thresholds)#
Bases:
objectAs frmtosparse, plus top_pixels, done by bslz4_to_sparse >= 0.0.22
- ImageD11.sinograms.lima_segmenter.initOptions(h5name, jobid)#
- ImageD11.sinograms.lima_segmenter.main(h5name, jobid)#
- ImageD11.sinograms.lima_segmenter.reader(frms, mask, cut, start=0)#
iterator to read chunks or frames and segment them returns sparseframes
- ImageD11.sinograms.lima_segmenter.sbatchlocal(fname, cores=None)#
Execute a grid batch job on the local machine Loops over the array submission for you
- ImageD11.sinograms.lima_segmenter.segment()#
- ImageD11.sinograms.lima_segmenter.segment_lima(args)#
Does segmentation on a single hdf5 srcname, destname, dataset
- ImageD11.sinograms.lima_segmenter.select(img, mask, row, col, val, cut)#
- ImageD11.sinograms.lima_segmenter.setup(dsname, cut=None, howmany=100000, pixels_in_spot=3, maskfile='', bgfile='', cores_per_job=16, files_per_core=4, pythonpath=None)#
Writes options into the dataset file cut=None is replaced by 1 for eiger, 25 otherwise pythonpath -> point to a non-default install
- ImageD11.sinograms.lima_segmenter.setup_slurm_array(dsname, dsgroup='/', pythonpath=None)#
Send the tasks to slurm
- ImageD11.sinograms.lima_segmenter.top_pixels(nnz, row, col, val, howmany, thresholds)#
selects the strongest pixels from a sparse collection - THRESHOLDS should be a sorted array of potential cutoff values to try that are higher than the original cutoff used to select data - howmany is the maximum number of pixels to return