Skip to content
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

Fix MPL warning suppression #1368

Merged
merged 2 commits into from
May 14, 2024
Merged

Fix MPL warning suppression #1368

merged 2 commits into from
May 14, 2024

Conversation

frankharkins
Copy link
Member

#1362 didn't work as Matplotlib emits warnings through the logging module rather than the warnings module. This follows advice (matplotlib/matplotlib#23326 (comment)) to correctly suppress the warnings.

@frankharkins frankharkins marked this pull request as ready for review May 14, 2024 13:20
@frankharkins frankharkins added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit 4595971 May 14, 2024
2 checks passed
@frankharkins frankharkins deleted the FH/mpl-loglevel branch May 14, 2024 14:21
@frankharkins frankharkins mentioned this pull request May 14, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 14, 2024
Embarassingly, #1368 broke the mocking code as `warnings` was never
imported. I didn't notice because `kernel.execute` doesn't report if the
execution fails. I'm making a companion PR to catch this.
frankharkins added a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
Qiskit#1362 didn't work as Matplotlib emits warnings through the `logging`
module rather than the `warnings` module. This follows advice
(matplotlib/matplotlib#23326 (comment))
to correctly suppress the warnings.
frankharkins added a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
Embarassingly, Qiskit#1368 broke the mocking code as `warnings` was never
imported. I didn't notice because `kernel.execute` doesn't report if the
execution fails. I'm making a companion PR to catch this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants