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 (str) – the folder where to save the radios and scans

  • nRadio (int) – The number of radios to create

  • nRecons (int) – the number of reconstruction to mock

  • nRecons – the number of paganin reconstruction to mock

  • dim (int) – dimension of the files (nb row/columns)

  • scan_range (int) – scan range, usually 180 or 360

  • n_extra_radio (int) – number of radio run after the full range is made usually used to observe any sample movement during acquisition

  • start_dark (bool) – do we want to create dark serie at start

  • end_dark (bool) – do we want to create dark serie at end

  • start_flat (bool) – do we want to create flat serie at start

  • end_flat (bool) – 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