pub fn load_nexus_histogram(path: &Path) -> Result<NexusHistogramData, IoError>Expand description
Load histogram data from a NeXus file, refusing multi-angle inputs.
Reads /entry/histogram/counts (u64 4D), converts to f64, and
transposes the chosen single-angle slice to NEREIDS convention
(tof, y, x). TOF values are converted from nanoseconds to
microseconds.
If the file has more than one rotation angle (n_rot > 1), the
call returns IoError::InvalidParameter pointing at
load_nexus_histogram_with_mode — silent sum-over-angles
was the pre-#430 behaviour and has been removed because it lost
projection-resolved information without the caller’s knowledge.
Single-angle files (n_rot == 1) load normally and reach the same
output as before #430.