-
-
Notifications
You must be signed in to change notification settings - Fork 8k
fooImage -> foo_image in testing/compare.py #12877
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
Conversation
lib/matplotlib/testing/compare.py
Outdated
"Image sizes do not match expected size: {} " | ||
"actual size {}".format(expectedImage.shape, actualImage.shape)) | ||
if expected_image.shape != actual_image.shape: | ||
raise _imageComparisonFailure( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise _imageComparisonFailure( | |
raise ImageComparisonFailure( |
lib/matplotlib/testing/compare.py
Outdated
"actual size {}".format(expectedImage.shape, actualImage.shape)) | ||
if expected_image.shape != actual_image.shape: | ||
raise _imageComparisonFailure( | ||
"_image sizes do not match expected size: {} " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"_image sizes do not match expected size: {} " | |
"Image sizes do not match expected size: {} " |
lib/matplotlib/testing/compare.py
Outdated
expected_image = np.array(expected_image).astype(float) | ||
actual_image = np.array(actual_image).astype(float) | ||
if expected_image.shape != actual_image.shape: | ||
raise _imageComparisonFailure( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise _imageComparisonFailure( | |
raise ImageComparisonFailure( |
lib/matplotlib/testing/compare.py
Outdated
actual_image = np.array(actual_image).astype(float) | ||
if expected_image.shape != actual_image.shape: | ||
raise _imageComparisonFailure( | ||
"_image sizes do not match expected size: {} " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"_image sizes do not match expected size: {} " | |
"Image sizes do not match expected size: {} " |
Just to not make me cringe every time I read that file. Also deprecate the unused decorators.switch_backend decorator (now replaced by the backend pytest mark).
fixed, thanks, I guess that's what you get when doing a search replace :p |
Just to not make me cringe every time I read that file.
Also deprecate the unused decorators.switch_backend decorator (now
replaced by the backend pytest mark).
PR Summary
PR Checklist