-
Notifications
You must be signed in to change notification settings - Fork 3
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 bugs found when processing new scaled trigger data. #382
Conversation
samaloney
commented
Feb 15, 2024
- Allow for QL files to unscale by packet
- Fix bug the replicate extra triggers in Spectrogram
* Allow for QL file to unscale by batch * Fix bug the replicate extra triggers in Spectrogram
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #382 +/- ##
==========================================
+ Coverage 77.10% 77.12% +0.01%
==========================================
Files 66 66
Lines 6906 6925 +19
==========================================
+ Hits 5325 5341 +16
- Misses 1581 1584 +3 ☔ View full report in Codecov by Sentry. |
Hum I need to check some of the differences in the end2end tests ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok looks like a bigger fix
but is looking good to me
for i, (num, skm) in enumerate(zip(control['num_samples'], | ||
control['compression_scheme_triggers_skm'])): | ||
if skm.tolist() == _SKM_SCALING: | ||
cur_slice = slice(cur_index, cur_index+num) | ||
logger.debug('Unscaling triggers') | ||
triggers[cur_slice], triggers_var[cur_slice] = unscale_triggers( | ||
triggers[cur_slice], integration=duration[cur_slice], | ||
detector_masks=control['detector_mask'][i:i+1], ssid=levelb.ssid) | ||
cur_index += num |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible optimisation and could be extended for the other science data is rather than looping over all packets loop over data where skm apply as usually only 1 skm and in the vast majority of cases the number of different skm << num of packets.