nabu.stitching.stitcher.pre_processing
source module nabu.stitching.stitcher.pre_processing
Classes
-
PreProcessingStitching — loader to be used when save data during pre-processing stitching (on projections). Output is expected to be an NXtomo
source class PreProcessingStitching(configuration, progress=None)
Bases : SingleAxisStitcher
loader to be used when save data during pre-processing stitching (on projections). Output is expected to be an NXtomo
warning: axis are provided according to the acquisition space <https://tomo.gitlab-pages.esrf.fr/bliss-tomo/master/modelization.html>
_
Attributes
-
serie_label : str — return serie name for logs
-
reading_orders — as scan can be take on one direction or the order (rotation goes from X to Y then from Y to X) we might need to read data from one direction or another
Methods
-
check_inputs — insure input data is coherent
-
get_bunch_of_data — goal is to load contiguous projections as much as possible...
-
compute_reduced_flats_and_darks — make sure reduced dark and flats are existing otherwise compute them
source method PreProcessingStitching.pre_processing_computation()
source property PreProcessingStitching.stitching_axis_in_frame_space
source property PreProcessingStitching.x_flips: list
source property PreProcessingStitching.y_flips: list
source method PreProcessingStitching.order_input_tomo_objects()
Raises
-
ValueError
source method PreProcessingStitching.check_inputs()
insure input data is coherent
Raises
-
ValueError
-
TypeError
source method PreProcessingStitching.compute_estimated_shifts()
Raises
-
NotImplementedError
-
ValueError
source staticmethod PreProcessingStitching.get_bunch_of_data(bunch_start: int, bunch_end: int, step: int, scans: tuple, scans_projections_indexes: tuple, reading_orders: tuple, flip_lr_arr: tuple, flip_ud_arr: tuple)
goal is to load contiguous projections as much as possible...
:param int bunch_start: begining of the bunch :param int bunch_end: end of the bunch :param int scans: ordered scan for which we want to get data :param scans_projections_indexes: tuple with scans and scan projection indexes to be loaded :param tuple flip_lr_arr: extra information from the user to left-right flip frames :param tuple flip_ud_arr: extra information from the user to up-down flip frames :return: list of list. For each frame we want to stitch contains the (flat fielded) frames to stich together
Raises
-
ValueError
source method PreProcessingStitching.compute_reduced_flats_and_darks()
make sure reduced dark and flats are existing otherwise compute them