Skip to content

Replace np.in1d#48

Open
robertdstein wants to merge 2 commits into
MickaelRigault:masterfrom
robertdstein:numpyv2.4
Open

Replace np.in1d#48
robertdstein wants to merge 2 commits into
MickaelRigault:masterfrom
robertdstein:numpyv2.4

Conversation

@robertdstein
Copy link
Copy Markdown

As of numpy v2.4., np.in1d has been removed, and consequently ztfquery will not work with numpy >=2.4. (see e.g. https://numpy.org/doc/2.2/reference/generated/numpy.in1d.html)

There is a replacement function, np.isin, which was introduced in numpy v1.13.0 (~2017-ish). So this PR swaps to that function, and introduces the requirement that numpy is at least >1.13.0 or higher.

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