tomoscan.esrf.scan.mock.ScanMock#
- class tomoscan.esrf.scan.mock.ScanMock(scan_path, n_radio, n_ini_radio=None, n_extra_radio=0, scan_range=360, n_recons=0, n_pag_recons=0, recons_vol=False, dim=200, ref_n=0, flat_n=0, dark_n=0, scene='noise')#
Bases:
objectBase class to mock as scan (radios, darks, flats, reconstructions…)
- __init__(scan_path, n_radio, n_ini_radio=None, n_extra_radio=0, scan_range=360, n_recons=0, n_pag_recons=0, recons_vol=False, dim=200, ref_n=0, flat_n=0, dark_n=0, scene='noise')#
- Parameters:
scan_path –
n_radio –
n_ini_radio –
n_extra_radio –
scan_range –
n_recons –
n_pag_recons –
recons_vol –
dim –
ref_n – repalced by flat_n
flat_n –
dark_n –
scene – scene type. * ‘noise’: generate radios from numpy.random * increase value: first frame value will be0, then second 1… * arange: arange through frames * ‘perfect-sphere: generate a sphere which just fit in the detector dimensions
TODO: add some differente scene type.
Methods
__init__(scan_path, n_radio[, n_ini_radio, ...])- param scan_path:
add_pag_reconstruction([index])add_radio([index])add_recons_vol()add_reconstruction([index])end_acquisition()write_metadata(n_radio, scan_range, flat_n, ...)Attributes
DETECTOR_PIXEL_SIZESAMPLE_PIXEL_SIZE