nxtomomill.test.utils.bliss.MockBlissAcquisition#

class nxtomomill.test.utils.bliss.MockBlissAcquisition(n_sample, n_sequence, n_scan_per_sequence, n_darks, n_flats, output_dir, with_nx_detector_attr=True, detector_name='pcolinux', acqui_type='basic', z_values=None, y_rot=False, nb_loop=None, nb_tomo=None, nb_turns=None, with_rotation_motor_info=True, frame_data_type=<class 'numpy.uint16'>, file_name_prefix='sample', file_name_z_fill=None, create_tomo_config=True, ebs_tomo_version=None)[source]#

Bases: object

Parameters
  • n_sequence – number of sequence to create

  • n_scan_per_sequence – number of scans (projection serie) per sequence

  • n_projections_per_scan – number of projection frame in a scan

  • n_darks – number of dark frame in the serie. Only one serie at the beginning

  • n_flats (int) – number of flats to create. In this case will only create one serie of n flats after dark if any

  • output_dir (str) – will contain the proposal file and one folder per sequence.

  • acqui_type (str) – acquisition type. Can be “basic”, “zseries” or “xrd-ct”

  • z_values (Iterable) – if acqui_type is zseries then users should provide the serie of values for z (one per stage)

  • nb_loop (Optional[int]) – number of pcotomo loop for v1 of bliss pcotomo

  • nb_tomo (Optional[int]) – number of tomo per loop for v1 of bliss pcotomo

  • nb_turns (Optional[int]) – number of turns for v2 of bliss pcotomo ( <=> nb NXtomo to generate)

  • file_name_prefix (str) – bliss file prefix name

  • file_name_z_fill (Optional[int]) – optional z fill for the file name index. If None then file index will not be ‘z filled’

  • create_tomo_config (bool) – if True create the ‘tomo_config’ group under instrument which contains metadata describing the acquisition (which dataset to read for rotaiton, translation …)

__init__(n_sample, n_sequence, n_scan_per_sequence, n_darks, n_flats, output_dir, with_nx_detector_attr=True, detector_name='pcolinux', acqui_type='basic', z_values=None, y_rot=False, nb_loop=None, nb_tomo=None, nb_turns=None, with_rotation_motor_info=True, frame_data_type=<class 'numpy.uint16'>, file_name_prefix='sample', file_name_z_fill=None, create_tomo_config=True, ebs_tomo_version=None)[source]#

Methods

__init__(n_sample, n_sequence, ...[, ...])

Attributes

path

proposal_file

samples