Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix expand_dims warnings in triinterpolate#12294

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 1 commit intomatplotlib:masterfromdstansby:tri-warnings
Sep 26, 2018

Conversation

dstansby
Copy link
Member

@dstansbydstansby commentedSep 26, 2018
edited
Loading

np.expand_dims is meant to take the axisafter which a new dimension is to be inserted, so the3 just needed changed to2 for the bottom block. (see the note athttps://docs.scipy.org/doc/numpy/reference/generated/numpy.expand_dims.html)

This was causing lots of test warnings like

/Users/dstansby/github/matplotlib/lib/matplotlib/tri/triinterpolate.py:1069: DeprecationWarning: Both axis > a.ndim and axis < -a.ndim - 1 are deprecated and will raise an AxisError in the future.  col2 = _prod_vectorized(J2, np.expand_dims(tri_dz[:, 2, :], axis=3))

@ImportanceOfBeingErnestImportanceOfBeingErnest added this to thev3.0.x milestoneSep 26, 2018
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Judging from the numpy documentation as well as the fact that there is no difference in output of theCubicTriInterpolator, this is the correct thing to do.

@QuLogicQuLogic merged commitb2c8991 intomatplotlib:masterSep 26, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 26, 2018
QuLogic added a commit that referenced this pull requestSep 27, 2018
…294-on-v3.0.xBackport PR#12294 on branch v3.0.x (Fix expand_dims warnings in triinterpolate)
@dstansbydstansby deleted the tri-warnings branchSeptember 27, 2018 08:23
QuLogic added a commit that referenced this pull requestJan 22, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@ImportanceOfBeingErnestImportanceOfBeingErnestImportanceOfBeingErnest approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.0.1
Development

Successfully merging this pull request may close these issues.

3 participants
@dstansby@QuLogic@ImportanceOfBeingErnest

[8]ページ先頭

©2009-2025 Movatter.jp