-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from 4dn-dcic/python-3.12-aftermath
Added numpy ^1.26.4 in pyproject.toml
- Loading branch information
Showing
12 changed files
with
647 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Though dcicutils is not dependent on numpy, elasticsearch pulls it in iff it is installed, | ||
# and if it is numpy 2.x the numpy.float_ constant has been retired and any reference to it | ||
# yields an error from numpy (AttributeError: np.float_ was removed in the NumPy 2.0 release. | ||
# Use np.float64 instead); this reference to numpy.float_ occurs in elasticsearch/serializer.py. | ||
# and we short-circuit it here by explicitly setting numpy.float_ to numpyh.float64. | ||
try: | ||
import numpy | ||
numpy.float_ = numpy.float64 | ||
except Exception: | ||
pass |
Oops, something went wrong.