tomoscan.esrf.scan.mock.MockHDF5#
- class tomoscan.esrf.scan.mock.MockHDF5(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:
MockNXtomo
- __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 – 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_radio[, n_ini_radio, ...])- 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