Set deterministic to True for vector graphics and warn about change to True in future for PNG by astrofrog · Pull Request #197 · matplotlib/pytest-mpl · GitHub
Skip to content

Set deterministic to True for vector graphics and warn about change to True in future for PNG#197

Merged
ConorMacBride merged 3 commits into
matplotlib:mainfrom
astrofrog:deterministic-default
Feb 13, 2024
Merged

Set deterministic to True for vector graphics and warn about change to True in future for PNG#197
ConorMacBride merged 3 commits into
matplotlib:mainfrom
astrofrog:deterministic-default

Conversation

@astrofrog

Copy link
Copy Markdown
Collaborator

While working on this I started to wonder if this should be a kwarg at all for mpl_image_compare or just a CLI/ini option. Any opinions?

@ConorMacBride

Copy link
Copy Markdown
Member

@ConorMacBride ConorMacBride mentioned this pull request Apr 3, 2023
22 tasks
@ConorMacBride

Copy link
Copy Markdown
Member

I see the changes in this PR are already in the documentation (https://pytest-mpl.readthedocs.io/en/latest/configuration.html#whether-to-make-metadata-deterministic) so we should merge this before releasing v0.17.0. This PR looks ready to me? Should we add the CLI and ini options now, or maybe later?

@ConorMacBride ConorMacBride added this to the 0.17.0 milestone Nov 21, 2023
@astrofrog

Copy link
Copy Markdown
Collaborator Author

@ConorMacBride - I don't have time to work on the CLI and ini options now but if you do, feel free to push to this PR. Otherwise we could just merge without as you said.

@ConorMacBride ConorMacBride force-pushed the deterministic-default branch from 1d4e83c to efc9f33 Compare January 2, 2024 16:06
@ConorMacBride ConorMacBride marked this pull request as ready for review January 2, 2024 16:19
@ConorMacBride

Copy link
Copy Markdown
Member

@astrofrog I've added the CLI and INI options here: https://pytest-mpl--197.org.readthedocs.build/en/197/configuration.html#whether-to-make-metadata-deterministic

If this looks okay, feel free to merge. I'll then go ahead and release v0.17.0.

@ConorMacBride

Copy link
Copy Markdown
Member

@Cadair Cadair left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

@ConorMacBride ConorMacBride merged commit 3bd3703 into matplotlib:main Feb 13, 2024
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.

3 participants