Skip to content

Comments

A few minor fixes#438

Open
duncanmmacleod wants to merge 5 commits intogwpy:masterfrom
duncanmmacleod:fix-gwpy-4-etc
Open

A few minor fixes#438
duncanmmacleod wants to merge 5 commits intogwpy:masterfrom
duncanmmacleod:fix-gwpy-4-etc

Conversation

@duncanmmacleod
Copy link
Member

This PR adds a few random fixes I came across when testing this project against gwpy 4.0.0rc1.

Python 3.13 classmethods behave differently, so the order of decorators needs to change
In the latest LALSuite, the lal.utils.CacheEntry object implements the __fspath__ method, so that os.path.basename and friends can operate directly on it
The items() and values() views acquire the h5py lock ('phil') while iterating, which means that any threading underneath that that attempts to read data ends up in a deadlock (see, e.g. https://gitlab.com/gwpy/gwpy/-/issues/1843)

By iterating over the keys instead, we avoid an unnecessary outer lock and work around the potential hang
@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

❌ Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.27%. Comparing base (d3aafb4) to head (4e5f996).

Files with missing lines Patch % Lines
gwsumm/archive.py 91.67% 1 Missing ⚠️
gwsumm/data/timeseries.py 66.67% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   49.25%   49.27%   +0.02%     
==========================================
  Files          60       60              
  Lines        8804     8811       +7     
==========================================
+ Hits         4336     4341       +5     
- Misses       4468     4470       +2     
Flag Coverage Δ
Linux-python3.10 49.27% <86.67%> (+0.02%) ⬆️
Linux-python3.11 49.27% <86.67%> (+0.02%) ⬆️
macOS-python3.10 49.27% <86.67%> (+0.02%) ⬆️
macOS-python3.11 49.27% <86.67%> (+0.02%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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
Copy link
Collaborator

eagoetz commented Feb 23, 2026

@duncanmmacleod Thanks for the PR. These basically seem fine to me. One quick question: are these really fixes for GWpy 4? It looks like they are more generic updates. If they are more generic, I suggest the PR title should be modified accordingly. Thanks

@duncanmmacleod duncanmmacleod changed the title Misc fixes for GWpy 4 A few minor fixes Feb 24, 2026
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