Skip to content

Add support for GWpy 4.0.0#182

Open
duncanmmacleod wants to merge 4 commits into
gwdetchar:masterfrom
duncanmmacleod:gwpy-4
Open

Add support for GWpy 4.0.0#182
duncanmmacleod wants to merge 4 commits into
gwdetchar:masterfrom
duncanmmacleod:gwpy-4

Conversation

@duncanmmacleod

Copy link
Copy Markdown
Member

GWpy 4.0.0rc1 has been released, and includes a number of breaking changes that impact this project. This PR includes patches to fix the test suite when installed alongside the new GWpy.

I have not tested an actual Hveto run, so there could easily be more to fix.

GWpy 4.x is stricter (worse) at recognising segwizard files than before
GWpy 4.0.0 returns aware datetime's, including timezone information, so the default output representation is different; the easiest solution is to control it explicitly so there are no surprises
The I/O registry construction in GWpy 4.0.0 changed, and the get_read_format function was removed, so we rebuild it by calling out to the private method that it used to call
The package_list function makes an actual system call, and requires either conda or pip to be available on the system - this commit patches that out to avoid an unnecessary requirement.

uv creates virtualenvs without pip by default, so this should avoid any surprises.
@duncanmmacleod duncanmmacleod marked this pull request as ready for review February 28, 2026 17:29
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.

1 participant