Skip to content
GitLab
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
c44913f2
Commit
c44913f2
authored
Jun 17, 2020
by
Nicola Vigano
Browse files
Alignment: fixed logic error
Signed-off-by:
Nicola VIGANÒ
<
nicola.vigano@esrf.fr
>
parent
e96b2709
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/alignment.py
View file @
c44913f2
...
...
@@ -584,7 +584,7 @@ class DetectorTranslationAlongBeam(AlignmentBase):
if
equispaced_increments
:
img_pos_increments
=
img_pos
[
1
:]
-
img_pos
[
0
]
else
:
img_pos_increments
=
-
np
.
diff
(
img_pos
)
img_pos_increments
=
np
.
diff
(
img_pos
)
# Polynomial.fit is supposed to be more numerically stable than polyfit
# (according to numpy)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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