Unverified Commit de003ea0 authored by Henri Payno's avatar Henri Payno
Browse files

[h52nx] add missing connection with sample_detector_distance

parent 6b96a586
Pipeline #59863 passed with stages
in 6 minutes and 10 seconds
......@@ -583,10 +583,21 @@ class StandardAcquisition(BaseAcquisition):
detector_node["count_time"] = self._acq_expo_time
detector_node["count_time"].attrs["unit"] = "s"
# write distance
distance, unit = self._get_distance()
if distance is not None:
detector_node["distance"] = distance
detector_node["distance"].attrs["unit"] = unit
if (
TomoHDF5Config.EXTRA_PARAMS_DISTANCE
in self.configuration.param_already_defined
):
distance = float(
self.configuration.param_already_defined[
TomoHDF5Config.EXTRA_PARAMS_DISTANCE
]
)
unit = "m"
else:
distance, unit = self._get_distance()
if distance is not None:
detector_node["distance"] = distance
detector_node["distance"].attrs["unit"] = unit
# write x and y pixel size
# if magnified pixel size is found then we right this value.
# otherwise will take pixel size (if found)
......
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