Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Factor out common checks for set_data in various Image subclasses. #26070

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

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jun 4, 2023

PR summary

PR checklist

Comment on lines 692 to 693
def _prepare_array(A):
# Common checks and typecasts on A for various Image subclasses.
Copy link
Member

Choose a reason for hiding this comment

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

"prepare_array" is a bit vague.

Suggested change
def _prepare_array(A):
# Common checks and typecasts on A for various Image subclasses.
def _normalize_image_array(A):
"""
Transform image-like input into a normalized array represenation,
that is used as data format in Image subclasses.
"""

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

Copy link
Member

Choose a reason for hiding this comment

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

Did you intentionally not take the docstring?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, missed it. reworded and included now.

@ksunden ksunden added this to the v3.8.0 milestone Jun 8, 2023
@ksunden ksunden merged commit 72885cc into matplotlib:main Jun 8, 2023
@anntzer anntzer deleted the isdc branch June 8, 2023 19:45
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.

3 participants