-
Notifications
You must be signed in to change notification settings - Fork 189
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 version from 1.17.X to allow the newest version (1.19) #4378
Conversation
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.
According to our current compatibility timeline we must support numpy version 1.17 until 26-Jul-2021. The compatiblity timeline is derived from AEP 003.
Please note that the 26-Jul-2021 date is not explicitly mentioned in AEP 003, but required to be compatible with NEP 29.
Edit: This means the requirement should be specified as: numpy~=1.17
.
Codecov Report
@@ Coverage Diff @@
## develop #4378 +/- ##
===========================================
+ Coverage 79.33% 79.33% +0.01%
===========================================
Files 468 468
Lines 34755 34757 +2
===========================================
+ Hits 27568 27571 +3
+ Misses 7187 7186 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Please update the requirements/*.txt files according to the following table:
- 3.5:
numpy==1.18.5
- 3.6:
numpy==1.19.2
- 3.7:
numpy==1.19.2
- 3.8:
numpy==1.19.2
It appears that there is an actual incompatibility:
My assumption is that the third argument in the call to
|
Yes, already looked into this and just pushed a possible fix. |
Just to understand. Did you write this comment manually or is this part of the semi-automatic workflow? |
I checked those manually. The automated workflow creates a PR if and only if the tests succeed and also only if the requirements files are outdated, which with the change to |
1cf01db
to
50c0d59
Compare
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. Codecov is complaining about the coverage, I'm ok to just ignore that, although we might need to check with someone else whether we can override that check.
But before we do that, maybe you can give it a 5min try of providing the faulty input to cover the section?
For newer versions of numpy, the entries in num_points are of type numpy.float64, and need to be integers so they can be used for indexing as num in numpy.linspace().
50c0d59
to
0da7e1b
Compare
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.
All good, thanks @CasperWA
Also drop sperate numpy install , since this should no longer be needed, in accordance with: aiidateam/aiida-core#4378
This is an attempt to try and unpin the hard constraint on
numpy
.This was introduced in f5d6cba, the reason for it can be seen in the commit message.
I have tried following the wiki page on how to update dependencies, and am currently trying the semi-automatic update of the requirements files by creating this PR.