Skip to content

feat: check that event_id in associated detector_number#37

Merged
jokasimr merged 1 commit into
mainfrom
events-in-detector-nums
Oct 28, 2024
Merged

feat: check that event_id in associated detector_number#37
jokasimr merged 1 commit into
mainfrom
events-in-detector-nums

Conversation

@jokasimr
Copy link
Copy Markdown
Contributor

Fixes #34

Just like #36 this requires reading the values of datasets.

Comment thread src/chexus/validators.py
isinstance(node, Group)
and node.attrs.get('NX_class') == 'NXevent_data'
and 'event_id' in node.children
and 'detector_number' in node.parent.children
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we separately checking that event_id and detector_number exist? Or is it ok when they don't and we can load the file anyway?

Copy link
Copy Markdown
Contributor Author

@jokasimr jokasimr Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have validators that makes sure event_id and detector_number exists at the moment.

Or is it ok when they don't and we can load the file anyway?

I don't know. Maybe we should create an issue for that.

@jokasimr jokasimr force-pushed the events-in-detector-nums branch 2 times, most recently from a319d37 to 30d9a9c Compare October 25, 2024 11:10
@jokasimr
Copy link
Copy Markdown
Contributor Author

jokasimr commented Oct 25, 2024

@jokasimr jokasimr force-pushed the events-in-detector-nums branch from a8c4fb1 to 666fa8a Compare October 28, 2024 10:28
@jokasimr jokasimr merged commit d642376 into main Oct 28, 2024
@jokasimr jokasimr deleted the events-in-detector-nums branch October 28, 2024 10:51
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.

Check event_id is a subset of detector_number

2 participants