tomwer.core.utils.scanutils.MockEDF#
- class tomwer.core.utils.scanutils.MockEDF(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, scene='noise', dark_n=0, ref_n=0, flat_n=0, rotation_angle_endpoint=False, energy=None, pixel_size=None, distance=None, srcurrent_start=200.0, srcurrent_end=100.0)#
- static mockScan(scanID, nRadio=5, nRecons=1, nPagRecons=0, dim=10, scan_range=360, n_extra_radio=0, start_dark=False, end_dark=False, start_flat=False, end_flat=False, start_dark_data=None, end_dark_data=None, start_flat_data=None, end_flat_data=None)#
Create some random radios and reconstruction in the folder
- Parameters:
scanID – the folder where to save the radios and scans
nRadio – The number of radios to create
nRecons – the number of reconstruction to mock
nRecons – the number of paganin reconstruction to mock
dim – dimension of the files (nb row/columns)
scan_range – scan range, usually 180 or 360
n_extra_radio – number of radio run after the full range is made usually used to observe any sample movement during acquisition
start_dark – do we want to create dark serie at start
end_dark – do we want to create dark serie at end
start_flat – do we want to create flat serie at start
end_flat – do we want to create flat serie at end
start_dark_data – if start_dark set to True Optional value for the dark serie. Else will generate some random values
end_dark_data – if end_dark set to True Optional value for the dark serie. Else will generate some random values
start_flat_data – if start_flat set to True Optional value for the flat serie. Else will generate some random values
end_flat_data – if end_flat set to True Optional value for the flat serie. Else will generate some random values