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

Minor fixes for Numpy 2 #1228

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Conversation

timothymillar
Copy link
Collaborator

Fixes #1225

This only fixes a couple of small issues for Numpy 2 compatibility. However, many tests are still failing due to Cython-Numpy 2 compatibility issues. See brentp/cyvcf2#307.

@timothymillar
Copy link
Collaborator Author

Tests now failing with cyvcf2 code: ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Copy link
Collaborator

@tomwhite tomwhite left a comment

Choose a reason for hiding this comment

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

LGTM thanks @timothymillar

The cyvcf2 fix is not ready yet so should we merge this now, along with a numpy<2 pin?

@timothymillar
Copy link
Collaborator Author

cyvcf2 and cbgen both have new releases for numpy 2 (the latest cbgen pins to numpy >= 2). But the tests against scikit-allel are still failing. Maybe time to add the scikit-allel test data and drop the dependency?

Copy link
Collaborator

@tomwhite tomwhite left a comment

Choose a reason for hiding this comment

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

Good to merge now

@jeromekelleher
Copy link
Collaborator

Agreed, let's pin to numpy < 2 for now and push out a release?

@tomwhite
Copy link
Collaborator

But the tests against scikit-allel are still failing. Maybe time to add the scikit-allel test data and drop the dependency?

I wonder if we need the scikit-allel conversion still? We could deprecate read_scikit_allel_vcfzarr. The VCF reading code is going to be replaced by bio2zarr soon anyway.

Thoughts @jeromekelleher?

@timothymillar timothymillar added the auto-merge Auto merge label for mergify test flight label Jun 19, 2024
@mergify mergify bot merged commit fdc7b7b into sgkit-dev:main Jun 19, 2024
8 checks passed
@jeromekelleher
Copy link
Collaborator

I'm wondering the same, it may be best to just drop direct VCF support soon and be done with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Auto merge label for mergify test flight
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Main build failing with 'RuntimeWarning: overflow encountered in scalar subtract'
3 participants