Skip to content

Fix SEI watchdog plotting (data access issue)#451

Merged
eagoetz merged 1 commit into
gwpy:masterfrom
eagoetz:fix-sei-watchdog
Jul 16, 2026
Merged

Fix SEI watchdog plotting (data access issue)#451
eagoetz merged 1 commit into
gwpy:masterfrom
eagoetz:fix-sei-watchdog

Conversation

@eagoetz

@eagoetz eagoetz commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

The SeiWatchDogPlot.draw() class method accesses data (oof) and may end up trying to access data beyond the end of the frame cache because the current class initialization uses an int() truncation to the GPS time used for the centre of the plot range. This sometimes results in an incorrect frame cache that the reading of data is a different range.

To fix this, we use floor and ceil to make sure the full range of data is selected

@eagoetz eagoetz added this to the 2.4.1 milestone Jul 16, 2026
@eagoetz eagoetz self-assigned this Jul 16, 2026
The SeiWatchDogPlot.draw() class method accesses data (oof) and may end up trying to access
data beyond the end of the frame cache because the current class initialization uses an int()
truncation to the GPS time used for the centre of the plot range. This sometimes results in an
incorrect frame cache that the reading of data is a different range.

To fix this, we use floor and ceil to make sure the full range of data is selected
@eagoetz
eagoetz force-pushed the fix-sei-watchdog branch from 70ea9a8 to c003374 Compare July 16, 2026 16:31
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.25%. Comparing base (0cf6a71) to head (c003374).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #451      +/-   ##
==========================================
+ Coverage   49.24%   49.25%   +0.01%     
==========================================
  Files          60       60              
  Lines        8810     8811       +1     
==========================================
+ Hits         4338     4339       +1     
  Misses       4472     4472              
Flag Coverage Δ
Linux-python3.10 49.25% <100.00%> (+0.01%) ⬆️
Linux-python3.11 49.22% <100.00%> (+0.01%) ⬆️
macOS-python3.10 49.25% <100.00%> (+0.01%) ⬆️
macOS-python3.11 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eagoetz
eagoetz requested review from areeda and robertbruntz July 16, 2026 16:40

@areeda areeda left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@eagoetz
eagoetz merged commit a509639 into gwpy:master Jul 16, 2026
8 checks passed
@eagoetz
eagoetz deleted the fix-sei-watchdog branch July 16, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants