-
Notifications
You must be signed in to change notification settings - Fork 126
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
Unpin Numpy #35232
Unpin Numpy #35232
Conversation
A couple of the Abins tests are using arrays in ragged state which raises a ValueError e.g. ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions Adding dtype=object provides a temporary workaround
As discussed I think the nicest way to fix the Abins tests is to move the array creation down into the I would suggest that we make a note to remove this check once we know Mantid is not being run on any older Numpy, but there is already a roadmap to remove these classes so it should happen naturally. |
@@ -22,7 +22,7 @@ boost: | |||
- 1.77 | |||
|
|||
numpy: | |||
- 1.19 | |||
- 1.24.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could I make a suggestion that we match conda-forge
here unless there is anything that we need from a much more up to date verison? numpy
is core to so many projects and we use a large set of libraries from conda-forge so having our minimum requires be the same gives us maximum compatibility.
Conda Forge maintain a pinning repository where they define these versions.
For numpy they define a version per Python version which is accomplished by matching the list entries for Python and numpy, e.g 3.8
uses 1.20
.
I've now made the changes requested by @martyngigg and @ajjackson . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Description of work.
A few months ago we pinned numpy until we could resolve any issues with newer versions. This is the PR that fixes any issues and removes the pin.
To test:
@ajjackson - please can you take a look at the fix for the Abins tests?
There is no associated issue.
This does not require release notes because the changes should not affect users
Reviewer
Please comment on the following (full description):
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.