Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
66f9dfe6
Commit
66f9dfe6
authored
Apr 29, 2021
by
payno
Browse files
[HDF5Tomoscan] improve scan_range robustness
parent
f95bd687
Pipeline
#45922
failed with stages
in 10 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
66f9dfe6
...
...
@@ -638,8 +638,9 @@ class HDF5TomoScan(TomoScanBase):
):
rotation_angle
=
self
.
rotation_angle
if
rotation_angle
is
not
None
:
dist_to180
=
abs
(
180
-
numpy
.
max
(
rotation_angle
))
dist_to360
=
abs
(
360
-
numpy
.
max
(
rotation_angle
))
angle_range
=
numpy
.
max
(
rotation_angle
)
-
numpy
.
min
(
rotation_angle
)
dist_to180
=
abs
(
180
-
angle_range
)
dist_to360
=
abs
(
360
-
angle_range
)
if
dist_to180
<
dist_to360
:
self
.
_scan_range
=
180
else
:
...
...
Write
Preview
Markdown
is supported
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