Repository navigation
4203 numpy types - #4204
Merged
Merged
4203 numpy types#4204
Conversation
- replaced `np.int` with `np.int64` - replaced `np.bool` with `bool`
acvander
marked this pull request as ready for review
December 20, 2022 19:54
3 tasks done
rob-miller
added a commit
to rob-miller/biopython
that referenced
this pull request
Dec 20, 2022
mdehoon
reviewed
Dec 21, 2022
| [2.7, 2.5, 0.4, 5.7, 0.2], | ||
| ], | ||
| numpy.float, | ||
| numpy.float64, |
Contributor
There was a problem hiding this comment.
As numpy.float was a synonym for float, I would prefer to replace it with just float here. Then effectively the test does not change. Also, it makes the test a bit more robust, as float can be different things on different platforms, but numpy.float64 is always the same.
Author
There was a problem hiding this comment.
Since this issue is blocking the CI pipeline, I have made your suggested change.
I think that having tests implicitly change based on platform architecture may cause issues in the long term. An alternative may be to utilize test parametrization to run the test for both np.float32 and np.float64.
peterjc
approved these changes
Dec 21, 2022
mdehoon
approved these changes
Dec 21, 2022
Member
|
Not sure what's happening with CirceCI, seems unrelated to this PR through. |
Member
|
Thank you! |
rob-miller
added a commit
to rob-miller/biopython
that referenced
this pull request
Jan 13, 2023
peterjc
pushed a commit
that referenced
this pull request
Jan 24, 2023
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
np.intwithnp.int64np.boolwithboolI hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally, and understand that continuous integration checks will be used to
confirm the Biopython unit tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
Closes #4203.
This PR fixes issues related to some NumPy type deprecations that affects platforms or users of NumPy v1.24