-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 LaTeX drawer on split-filesystem systems #8629
Conversation
Corrects issue Qiskit#8542
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
I'm unsure how to update a docstring (no. 2 in the pull request checklist). |
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.
The CI is just failing because of the code-style issue. If you move the import to the top block (between import os
and import subprocess
) it should be happy again.
It would be good to add a release note to document the bug fix as well, but that will generally involve you setting up a proper development environment for Terra (see our contributing guide), but if you've not got time, let me know and I can take care of it for you.
@@ -488,7 +488,8 @@ def _latex_circuit_drawer( | |||
image = utils._trim(image) | |||
if filename: | |||
if filename.endswith(".pdf"): | |||
os.rename(base + ".pdf", filename) | |||
import shutil |
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.
The import can go to the top of the file with the rest (I was just trying simplify the description of the change when I was asking you to try it out, sorry).
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.
Whoops, good point. I moved it.
Oh, I missed your comment before - don't worry about the docstring or adding additional tests for this change. There's no documentation change necessary at all, and there's not really a sensible way we can test the LaTeX compilation on a split filesystem in CI anyway. |
Yeah, please. I did the commits on Github directly. Will look into doing this for next time 😄 |
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.
Looks good, thanks for the debugging and the quick responses!
Pull Request Test Coverage Report for Build 2949826278
💛 - Coveralls |
Summary
Corrects issue #8542