Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
887e9bc8
Commit
887e9bc8
authored
Apr 20, 2022
by
Pierre Paleo
Browse files
Account for horizontal displacements in translation_movements_file
parent
f89a7b64
Pipeline
#72806
passed with stage
in 6 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nabu/pipeline/fullfield/processconfig.py
View file @
887e9bc8
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment