Skip to content
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

BUG: nested use of parameters in definition of arrays in numpy.f2py #6307

Closed
wants to merge 1 commit into from

Conversation

2sn
Copy link
Contributor

@2sn 2sn commented Sep 12, 2015

Nested use of paramaters in definition of dimension caused problmes.
Issue #5877.

For example

  parameter (i=7)
  common buf(nvar*(nvar+1) * (n + 1))

this is a fix as suggested by pearu on github.

Nested use of paramaters in definition of dimension caused problmes.
Issue numpy#5877.

For example

      parameter (i=7)
      common buf(nvar*(nvar+1) * (n + 1))

this is a fix as suggested by pearu on github.
@2sn
Copy link
Contributor Author

2sn commented Sep 12, 2015

gh-5877

@charris
Copy link
Member

charris commented Sep 21, 2015

LGTM, but needs a test. @pearu Look good to you?

@charris
Copy link
Member

charris commented Sep 21, 2015

Also, put Closes #5877 in the commit message for documentation and to automatically close the issue.

@2sn
Copy link
Contributor Author

2sn commented Sep 21, 2015

Thanks for looking at my pull requests.

My apologies, but I have not done this - changing the commit and also
squashing the commits for #6306 - for github before. Do I create a new
pull request, or what is the procedure?

-Alexander

On 21/09/15 11:41, Charles Harris wrote:

Also, put |Closes #5877| in the commit message for documentation and to
automatically close the issue.


Reply to this email directly or view it on GitHub
#6307 (comment).

@charris
Copy link
Member

charris commented Sep 21, 2015

The trick is to get familiar with git rebase -i HEAD~n, where n is the number of commits you want to change. Here n would be 1. Then you can choose to edit commit messages, squash commits, and other such stuff. The command is pretty self explanatory if you run it from the command line. After that, do a force push to the same branch, i.e.,

git push --force origin <your branch name>.

You can also add new commits and just push the branch, no force flag needed.

@pearu
Copy link
Contributor

pearu commented Sep 21, 2015

LGTM as well.

@charris charris added this to the 1.10.0 release milestone Sep 24, 2015
@charris charris removed this from the 1.10.0 release milestone Oct 1, 2015
@charris
Copy link
Member

charris commented Oct 1, 2015

To make a test, look at the existing tests in numpy/f2py/tests and try to copy one of them, or add a code snippet that failed before but now works. Feel free to create a new test file if you feel one is warranted.

@charris
Copy link
Member

charris commented Oct 16, 2015

Closing in favor of #6487 . Thanks @2sn .

@charris charris closed this Oct 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants