Commit f9a8bab0 authored by payno's avatar payno
Browse files

`pixel_size` is now in micrometer

parent b5cd2540
Pipeline #72643 passed with stages
in 3 minutes and 23 seconds
......@@ -288,11 +288,11 @@ def edf_to_nx(
key_aliases=["pixelSize"],
)
h5d["/entry/instrument/detector/x_pixel_size"] = (
pixel_size * metricsystem.millimeter.value
pixel_size * metricsystem.micrometer.value
)
h5d["/entry/instrument/detector/x_pixel_size"].attrs["unit"] = "m"
h5d["/entry/instrument/detector/y_pixel_size"] = (
pixel_size * metricsystem.millimeter.value
pixel_size * metricsystem.micrometer.value
)
h5d["/entry/instrument/detector/y_pixel_size"].attrs["unit"] = "m"
......
Supports Markdown
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