tomoscan.esrf.scan.mock.MockNXtomo#
- class tomoscan.esrf.scan.mock.MockNXtomo(scan_path, n_proj, n_ini_proj=None, n_alignement_proj=0, scan_range=360, n_recons=0, n_pag_recons=0, recons_vol=False, dim=200, create_ini_dark=True, create_ini_ref=True, create_final_ref=False, create_ini_flat=True, create_final_flat=False, n_refs=10, n_flats=10, scene='noise', intensity_monitor=False, distance=None, energy=None, sample_name='test', group_size=None, magnification=None, x_pos=None, y_pos=None, z_pos=None, field_of_view='Full', estimated_cor_frm_motor=None)#
Bases:
ScanMock
Mock an acquisition in a hdf5 file.
note: for now the Mock class only manage one initial flat and one final
- __init__(scan_path, n_proj, n_ini_proj=None, n_alignement_proj=0, scan_range=360, n_recons=0, n_pag_recons=0, recons_vol=False, dim=200, create_ini_dark=True, create_ini_ref=True, create_final_ref=False, create_ini_flat=True, create_final_flat=False, n_refs=10, n_flats=10, scene='noise', intensity_monitor=False, distance=None, energy=None, sample_name='test', group_size=None, magnification=None, x_pos=None, y_pos=None, z_pos=None, field_of_view='Full', estimated_cor_frm_motor=None)#
- Parameters
scan_path – directory of the file containing the hdf5 acquisition
n_proj – number of projections (does not contain alignement proj)
n_ini_proj – number of projection do add in the constructor
n_alignement_proj – number of alignment projection
scan_range –
n_recons –
n_pag_recons –
recons_vol –
dim – frame dim - only manage square fame for now
create_ini_dark – create one initial dark frame on construction
create_ini_flat – create the initial series of ref (n_ref) on construction (after creation of the dark)
create_final_flat – create the final series of ref (n_ref) on construction (after creation of the dark)
n_refs – number of refs per series
distance – if not None then will save energy on the dataset
energy – if not None then will save the distance on the dataset
Methods
__init__
(scan_path, n_proj[, n_ini_proj, ...])- param scan_path
directory of the file containing the hdf5 acquisition
add_alignment_radio
(index, angle)add_distance
(distance)add_energy
(energy)add_final_flat
()add_initial_dark
()add_initial_flat
()add_pag_reconstruction
([index])add_radio
([index])add_recons_vol
()add_reconstruction
([index])end_acquisition
()write_metadata
(n_radio, scan_range, flat_n, ...)Attributes
PIXEL_SIZE
has_intensity_monitor