scipp / scippnexus

h5py-like utility for NeXus files with seamless scipp integration
https://scipp.github.io/scippnexus/
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

Ignore cue_* fields in choppers which interfere with loading #98

Closed SimonHeybrock closed 1 year ago

SimonHeybrock commented 1 year ago

Similar to the same mechanism we use for detector data.

SimonHeybrock commented 1 year ago

They provide an index into a potentially long dimension, from the Nexus docs:

In order to make random access to timestamped data faster there is an optional array pair of cue_timestamp_zero and cue_index. The cue_timestamp_zero will contain coarser timestamps than in the time array, say every five minutes. The cue_index will then contain the index into the time,value pair of arrays for that coarser cue_timestamp_zero.

These fields have a different length than the data, so they prevent loading it as a DataArray. Since they contain no actual information we skip them.