Skip to content

TST: Increase fp tolerances for some images #22132

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 3 commits into from
Jan 6, 2022

Conversation

greglucas
Copy link
Contributor

PR Summary

This reverts PR #22099 and instead bumps the tolerances of some of the image tests. This is due to the AVX512 instruction set being used on some CI runners.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

I prefer this to a bunch of compiler flags. But I'm not expert on what is "correct"

This is for floating point errors that crept in with
AVX512 instruction sets on some CI architectures.
Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

Anyone can merge on CI green.

@tacaswell tacaswell added this to the v3.5.2 milestone Jan 6, 2022
@QuLogic QuLogic merged commit 3d91b3f into matplotlib:main Jan 6, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 6, 2022
QuLogic added a commit that referenced this pull request Jan 7, 2022
…132-on-v3.5.x

Backport PR #22132 on branch v3.5.x (TST: Increase fp tolerances for some images)
@greglucas greglucas deleted the tst-fp-tolerances branch January 7, 2022 14:51
jklymak pushed a commit that referenced this pull request Oct 25, 2022
This is similar to #22132 in that NumPy has added more code paths that
now take advantage of AVX512 optimizations and causes slight variations
in results.

Fixes #24060
melissawm pushed a commit to melissawm/matplotlib that referenced this pull request Dec 19, 2022
This is similar to matplotlib#22132 in that NumPy has added more code paths that
now take advantage of AVX512 optimizations and causes slight variations
in results.

Fixes matplotlib#24060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants