Commit 887e9bc8 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Account for horizontal displacements in translation_movements_file

parent f89a7b64
Pipeline #72806 passed with stage
in 6 minutes
......@@ -56,6 +56,12 @@ class ProcessConfig(ProcessConfigBase):
print("Something wrong with translation_movements_file %s" % transl_file)
raise
setattr(self.dataset_info, dataset_info_attr, translations)
if translations is not None:
# Horizontal translations are handled by "axis_correction" in backprojector
horizontal_translations = translations[:, 0]
if np.max(np.abs(horizontal_translations)) > 1e-3:
self.dataset_info.axis_correction = horizontal_translations
def _get_rotation_axis_position(self):
super()._get_rotation_axis_position()
......
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