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 broken tests using deprecated matplotlib function from 3.6.0 (closes #909) #910

Merged
merged 4 commits into from
Sep 16, 2022

Conversation

conradhaupt
Copy link
Collaborator

@conradhaupt conradhaupt commented Sep 16, 2022

Summary

Matplotlib 3.6.0 deprecates join() for Grouper, which is returned by get_shared_{x,y}_axes(). This means a deprecation warning is raised by MplCurveDrawer, which causes some tests to fail. See #909 for more.

Details and comments

This PR fixes #909 as described in the issue. I have confirmed the tests pass locally on my machine (macOS Intel, Python 3.9).

Pinging relevant people
@wshanks @nkanazawa1989

@wshanks
Copy link
Contributor

wshanks commented Sep 16, 2022

Ugh, it looks like there is a second upstream issue with aer being moved from qiskit.providers.aer to qiskit_aer: Qiskit/qiskit-aer#1526.

Maybe pin aer to <0.11 here and then we can do a real fix for that in a separate PR? Or we could pin aer and matplotlib in a separate PR, then unpin matplotlib in this PR, and then unpin aer in the PR that fixes 0.11.

@conradhaupt
Copy link
Collaborator Author

Let's leave this PR as is. I'll quickly open a PR to pin both libraries.

@wshanks
Copy link
Contributor

wshanks commented Sep 16, 2022

I merged #911, so you should be able to merge/rebase main and remove the matplotlib constraint now.

@wshanks
Copy link
Contributor

wshanks commented Sep 16, 2022

Actually, I went ahead and did the above. I wanted to get the CI started since it takes a while.

@wshanks wshanks merged commit 1f6d985 into qiskit-community:main Sep 16, 2022
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.

Matplotlib 3.6.0 appears to break CurveAnalysis tests with MplCurveDrawer
2 participants