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

Look in the fast data to find the max number of pulses #153

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

JamesWrigley
Copy link
Member

This partially fixes an edge-case where the XGM's slow data property doesn't record the true number of pulses, so the slicing done by .pulse_energy() is incorrect. Now we look in the fast data to find the number of pulses. I'm going to merge this now because it's quite annoying to work around in production, but I need to revisit this next week to:

  • Add a test
  • Add a warning that the slow data is incorrect
  • Maybe change .pulse_counts() to use fast data.

@JamesWrigley JamesWrigley added the bug Something isn't working label Apr 5, 2024
@JamesWrigley JamesWrigley self-assigned this Apr 5, 2024
@JamesWrigley JamesWrigley merged commit b2893a2 into master Apr 5, 2024
6 checks passed
@JamesWrigley JamesWrigley deleted the xgm-pulses branch April 5, 2024 11:01
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.

None yet

1 participant