Skip to content

Conversation

@jl-wynen
Copy link
Member

@jl-wynen jl-wynen commented Apr 3, 2024

The current implementation includes all detectors in the output even if they are not present in the file. This is because of how the data is grouped.

Found in #47.

@jl-wynen jl-wynen added the bug Something isn't working label Apr 3, 2024
@jl-wynen jl-wynen requested a review from SimonHeybrock April 3, 2024 08:31
Comment on lines +152 to 153
if len(events) == 0:
return None
Copy link
Member

Choose a reason for hiding this comment

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

Won't downstream code break if some detectors are missing/none?

Copy link
Member Author

Choose a reason for hiding this comment

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

Isn't this is how the nexus loader behaves?
Stuff may break but it seems cleaner to not include a detector in the group if the file also didn't include it.

@jl-wynen jl-wynen merged commit 8c23c0d into main Apr 3, 2024
@jl-wynen jl-wynen deleted the exclude-detectors-wo-data branch April 3, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants