Skip to content

Commit

Permalink
Fix a bug in the texrenderer (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxiLi authored Sep 4, 2024
1 parent 7633f6e commit 5ef8daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qutip_qip/circuit/texrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,12 @@ def _crop_pdf(self, filename):
)

@staticmethod
def _convert_pdf(file_stem):
def _convert_pdf(file_stem, dpi=None):
"""
'Convert' to pdf: since LaTeX outputs a PDF file, there's nothing to do.
"""
if dpi is not None:
warnings.warn("argument dpi is ignored for pdf output.")
with open(file_stem + ".pdf", "rb") as file:
return file.read()

Expand Down

0 comments on commit 5ef8daa

Please sign in to comment.