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

Deprecate proj3d.mod.#13020

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:masterfromanntzer:proj3dmod
Feb 12, 2019
Merged

Deprecate proj3d.mod.#13020

QuLogic merged 1 commit intomatplotlib:masterfromanntzer:proj3dmod
Feb 12, 2019

Conversation

anntzer
Copy link
Contributor

Having a function named mod that doesn't do % but computes the norm of a
vector is just a good way to trip the reader (yes, I know about the term
"modulus of a vector", but still).

Also vectorize a normals calculation.

Also we can use % instead of np.mod elsewhere.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzeranntzer added this to thev3.1 milestoneDec 19, 2018
for n in normals])
withnp.errstate(invalid="ignore"):
shade = ((normals / np.linalg.norm(normals, axis=1, keepdims=True))
@ lightsource.direction)
Copy link
Member

Choose a reason for hiding this comment

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

OK, I couldn't even google this one. What does the@ operator do?

Copy link
Member

Choose a reason for hiding this comment

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

That‘s a new operator introduced in python 3. Numpy uses it for matrix multiplication.a @ b is the same asnp.dot(a, b), just more readable.

@QuLogic
Copy link
Member

xref#13030

@anntzer
Copy link
ContributorAuthor

I can rebase this on top of#13030 once it is merged, no problem.

tacaswell
tacaswell previously requested changesDec 24, 2018
Copy link
Member

@tacaswelltacaswell left a comment

Choose a reason for hiding this comment

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

Blocking only to make sure@WeatherGod has a chance to look at this.

@WeatherGod should dismiss this.

@jklymakjklymak dismissedtacaswell’sstale reviewFebruary 6, 2019 01:35

weather god approved

@jklymak
Copy link
Member

Confused if this should be merged given#13030, of if#13030 will be merged. If its not a problem, anyone can merge.

@QuLogic
Copy link
Member

@anntzer agreed to wait, above.

Having a function named mod that doesn't do % but computes the norm of avector is just a good way to trip the reader (yes, I know about the term"modulus of a vector", but still).Also vectorize a normals calculation.Also we can use % instead of np.mod elsewhere.
@anntzer
Copy link
ContributorAuthor

rebased and removed the deprecation notice, as#13030 already takes care of that

@QuLogicQuLogic merged commit665cf51 intomatplotlib:masterFeb 12, 2019
@anntzeranntzer deleted the proj3dmod branchFebruary 13, 2019 00:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak left review comments

@timhoffmtimhoffmtimhoffm approved these changes

@WeatherGodWeatherGodWeatherGod approved these changes

@tacaswelltacaswelltacaswell left review comments

Assignees

@WeatherGodWeatherGod

Projects
None yet
Milestone
v3.1.0
Development

Successfully merging this pull request may close these issues.

6 participants
@anntzer@QuLogic@jklymak@tacaswell@WeatherGod@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp