Improves loading of NXoff_geometry and NXcylindrical_geometry.
When such a group is loaded directly, the fields are loaded as-is. When embedded in, e.g., an NXdetector, its detector_numbers may be used to derive a shape for each detector pixel. This ensuresthat this can be tracked and broadcasted (e.g., against pixel offsets) properly, avoiding need to wrap in a scalar variable, which would prevent this.
This work has highlighted the need for butter support for "structured" dtypes in Scipp, see scipp/scipp#3046. For now, this is using binned data for a similar (if slightly more restricted) approach.
Improves loading of
NXoff_geometry
andNXcylindrical_geometry
.When such a group is loaded directly, the fields are loaded as-is. When embedded in, e.g., an NXdetector, its detector_numbers may be used to derive a shape for each detector pixel. This ensuresthat this can be tracked and broadcasted (e.g., against pixel offsets) properly, avoiding need to wrap in a scalar variable, which would prevent this.
This work has highlighted the need for butter support for "structured" dtypes in Scipp, see scipp/scipp#3046. For now, this is using binned data for a similar (if slightly more restricted) approach.