Commit cd8d4103 authored by Pierre Paleo's avatar Pierre Paleo

Fix: remove overwrite of nabu_config when using binning

parent 04a6cb57
Pipeline #37002 passed with stages
in 4 minutes and 56 seconds
......@@ -266,6 +266,7 @@ class NabuValidator(object):
self.dataset_infos._projections_subsampled = subsample_dict(self.dataset_infos.projections, subsampling_factor)
self.dataset_infos._projs_indices_subsampled = sorted(self.dataset_infos._projections_subsampled.keys())
self.dataset_infos.reconstruction_angles = self.dataset_infos.reconstruction_angles[::subsampling_factor]
# should be simply len(projections)... ?
self.dataset_infos.n_angles //= subsampling_factor
if self.binning != (1, 1):
bin_x, bin_z = self.binning
......@@ -295,7 +296,6 @@ class NabuValidator(object):
else:
rot_c = (nx - 1)/2.
self.dataset_infos.axis_position = rot_c
self.nabu_config["reconstruction"]["rotation_axis_position"] = rot_c
def check_output_file(self):
......
Markdown is supported
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