Skip to content

Require NXevent_data has some "event" datasets #69

Merged
jokasimr merged 1 commit into
mainfrom
event-data-requires-events
May 27, 2026
Merged

Require NXevent_data has some "event" datasets #69
jokasimr merged 1 commit into
mainfrom
event-data-requires-events

Conversation

@jokasimr
Copy link
Copy Markdown
Contributor

@jokasimr jokasimr commented May 27, 2026

I saw this test failure:

https://scipp.github.io/nightly-dashboard/latest/nexusfiles-scipp_estia_load_raw_file_.html

The failing component seems to be a NXevent_data entry in the file that actually encodes a histogram monitor.

The added validator checks that any NXevent_data group has at least one of event_time_offset or event_id datasets.
This is strictly speaking not required by the Nexus standard, because both fields are optional, but I don't think there is a use case for having an event data group without event_id or event_time_offset so I think it makes sense to be "opinionated" here.

@jokasimr jokasimr requested a review from SimonHeybrock May 27, 2026 10:26
@jokasimr jokasimr merged commit baf72dd into main May 27, 2026
4 checks passed
@jokasimr jokasimr deleted the event-data-requires-events branch May 27, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants