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

Remove some extra spaces in docstrings/comments.#11592

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
jklymak merged 1 commit intomatplotlib:masterfromanntzer:spacesindocstrings
Jul 7, 2018

Conversation

anntzer
Copy link
Contributor

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

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

.... I'm not going to ask how you found all these...

@jklymakjklymak merged commit258ad31 intomatplotlib:masterJul 7, 2018
@jklymak
Copy link
Member

Merging because I don't think any code was touched...

Copy link
Contributor

@afvincentafvincent left a comment
edited
Loading

Choose a reason for hiding this comment

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

Huh, it looks like@jklymak was faster than I was ^^... I do not think that the two extra notes I have left are really worth it as the PR has already been merged: there are very (very) minor suggestions ;).

@@ -2562,7 +2562,7 @@ def get_y(self):
return self._y

def get_width(self):
"Return the width of therectangle"
"Return the width of the rectangle"
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a final period ? As you seem to have added it to other docstrings (at least one) 😈.

@@ -1138,7 +1137,7 @@ def compute_geom_weights(self):
# In the below formula we could take modulo 2. but
# modulo 1. is safer regarding round-off errors (flat triangles).
angle = np.abs(np.mod((alpha2-alpha1) / np.pi, 1.))
# Weight proportional to angle up np.pi/2; null weight for
# Weight proportional to angle up np.pi/2; null weight for
# degenerated cases 0. and np.pi (Note that `angle` is normalized
Copy link
Contributor

@afvincentafvincentJul 7, 2018
edited
Loading

Choose a reason for hiding this comment

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

Being there "degenerated cases 0 and np.pi (note thatangle is normalized"?

@jklymak
Copy link
Member

.... sorry

@afvincent
Copy link
Contributor

@jklymak No problem 😄. (BTW, I would be interested to know how all those extra spaces were found ^^...)

@anntzer
Copy link
ContributorAuthor

I noticed one while checking the signature of cbook.deprecated (for#11590). Then it just a matter of grepping for\w \.?;? \w...

@anntzeranntzer deleted the spacesindocstrings branchJuly 7, 2018 09:29
@anntzeranntzer mentioned this pull requestJul 7, 2018
6 tasks
@tacaswelltacaswell added this to thev3.0 milestoneJul 7, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@afvincentafvincentafvincent left review comments

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.0.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@jklymak@afvincent@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp