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

Replaced np.int with int in adaptive_coarsegrain #473

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Replaced np.int with int in adaptive_coarsegrain #473

merged 2 commits into from
Jan 8, 2024

Conversation

gschuette
Copy link
Contributor

The adaptive_coarsegrain function doesn't work when using NumPy 1.24 and later because line 1318 in cooltools/cooltools/lib/numutils.py uses np.int, which was deprecated in NumPy 1.20 and fully removed in NumPy 1.24 (see here). It should be replaced by int or np.int_.

Per the suggestion from @nvictus in issue 472, I opted for the int option.

numpy.int was an alias for Python's built-in int function that was removed from NumPy in version 1.24. Updated this so that the adaptive coarsegraining can be performed while using NumPy >= 1.24
Replaced np.int with int in adaptive_coarsegrain
@nvictus nvictus merged commit 0c516f4 into open2c:master Jan 8, 2024
4 checks passed
@nvictus
Copy link
Member

nvictus commented Jan 8, 2024

Thank you @gschuette !

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