Skip to content
Snippets Groups Projects

`pixel_size` is now in micrometer

Merged payno requested to merge fix_edf_pipxel_size into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -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"
Loading