Commit 85f81e41 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Start 'skip_reconstruction' mechanism if processing only a subset of angles

parent 731eae9b
Pipeline #78609 passed with stage
in 6 minutes and 18 seconds
......@@ -165,6 +165,12 @@ class NewPipeline:
self.logger.debug("Set sub-region to %s" % (str(sub_region)))
self.sub_region = sub_region
self._sub_region_xz = sub_region[2] + sub_region[1]
self.skip_reconstruction = True
if c_a < self.dataset_info.angles_not_subsampled:
# TODO allow a certain tolerance in this case ?
# Reconstruction is still possible (albeit less accurate) if delta is small
self.skip_reconstruction = False
self.logger.debug("Only a subset of angles is processed - Reconstruction will be skipped")
def _set_extra_options(self, extra_options):
......@@ -254,6 +260,8 @@ class NewPipeline:
self._init_radios_movements()
self._init_mlog()
self._init_sino_normalization()
if self.skip_reconstruction:
pass
self._init_sino_builder()
self._init_sino_rings_correction()
self._prepare_reconstruction()
......@@ -326,7 +334,6 @@ class NewPipeline:
self._read_options["files"] = input_data_files
@use_options("flatfield", "flatfield")
def _init_flatfield(self):
self._ff_options = self.processing_options["flatfield"].copy()
......@@ -816,7 +823,7 @@ class NewPipeline:
self._init_flatfield() # reset flatfield
self._init_writer()
self._init_double_flatfield()
# self._configure_data_dumps()
self._init_data_dump()
def process_chunk(self, sub_region):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment