Skip to content

Fix check for empty detectors#320

Open
jl-wynen wants to merge 2 commits intomainfrom
allow-empty-banks
Open

Fix check for empty detectors#320
jl-wynen wants to merge 2 commits intomainfrom
allow-empty-banks

Conversation

@jl-wynen
Copy link
Member

Some instruments will have detectors without any events in some settings. The reader should not fail in that case.

There is no reason to fail here when the detector has no events. The downstream grouping code can handle this just fine.
@jl-wynen jl-wynen requested a review from nvaytet February 20, 2026 08:28
Copy link
Member

@nvaytet nvaytet left a comment

Choose a reason for hiding this comment

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

Looks good.

Can you add a test?

@jl-wynen
Copy link
Member Author

I added a test but it requires scipp/scipp#3850

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