GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 66f9dfe6 authored by payno's avatar payno

[HDF5Tomoscan] improve scan_range robustness

parent f95bd687
Pipeline #45922 failed with stages
in 10 minutes and 33 seconds
......@@ -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:
......
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