Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PumpProbePulses.pulse_mask() for empty or partially empty trains #126

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

philsmt
Copy link
Collaborator

@philsmt philsmt commented Feb 23, 2024

@bj-s reported an issue with PumpProbePulses.pulse_mask() in a run where all trains are pumped, but every 50th train has no FEL pulses.

The special implementation of pulse_mask() implicitly assumed every train to have at least one FEL and PPL pulse in its implementation. Additionally while fixing this, I noticed it was not included in the fixes in #100 regarding handling of trains without pulses.

Extended the tests to cover what previously failed.

@philsmt philsmt requested a review from JamesWrigley February 23, 2024 12:01
@philsmt philsmt force-pushed the fix/pumpprobe-empty-pulses branch from 9675cf4 to 219c60a Compare February 23, 2024 12:04
Copy link
Member

@JamesWrigley JamesWrigley left a comment

Choose a reason for hiding this comment

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

LGTM!

@philsmt
Copy link
Collaborator Author

philsmt commented Feb 26, 2024

Thanks for review!

@philsmt philsmt merged commit f08e291 into master Feb 26, 2024
4 checks passed
@philsmt philsmt deleted the fix/pumpprobe-empty-pulses branch February 26, 2024 09:50
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