-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: [Regression 1.21.4 -> 1.22.0] f2py infers integers incorrectly from shape (-(nterms):nterms,nvcount)
#20709
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
Comments
(-(nterms):nterms,nvcount)
(-(nterms):nterms,nvcount)
For the record, here is another way to reproduce the issue. First, the expected result is
but the current numpy main branch gives:
I'll look into it.. |
pearu
added a commit
to pearu/numpy
that referenced
this issue
Jan 3, 2022
charris
pushed a commit
to charris/numpy
that referenced
this issue
Jan 4, 2022
* BUG: Fix array dimensions solver for multidimensional arguments in f2py. See numpy#20709
Thanks for fixing this so quickly! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
Consider the following F90 snippet, let's call that
myext.f90
.(Excerpted and simplified from code generated by https://github.com/inducer/pyfmmlib/.)
Then run this line and get the following output:
Observe the default for
nterms
is given asshape(expn1, 0)
when it should be(-1 + shape(expn1, 0)) / 2
. If you removenvcount
from the shapes ofexpn1
andexpn2
, f2py will produce that.Maybe this issue is related to #19805?
cc @pearu
NumPy/Python version information:
Related CI failures;
The text was updated successfully, but these errors were encountered: