Skip to content

Commit

Permalink
Merge pull request #117 from BoxiLi/fix_numpy_version
Browse files Browse the repository at this point in the history
Fix numpy version<=1.21 and black test
  • Loading branch information
BoxiLi committed Jan 15, 2022
2 parents 40a508a + aa99844 commit e514395
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package_dir=
packages = find:
include_package_data = True
install_requires =
numpy>=1.16.6
numpy>=1.16.6,<=1.21
scipy>=1.0
qutip>=4.6,<5
setup_requires =
Expand Down
2 changes: 0 additions & 2 deletions src/qutip_qip/circuit_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def _crop_pdf(filename):
_force_remove(filename)
os.rename(temporary, filename)


else:

def _crop_pdf(_):
Expand Down Expand Up @@ -248,7 +247,6 @@ def image_from_latex(code, file_type="png"):
os.chdir(previous_dir)
return out


else:

def image_from_latex(*args, **kwargs):
Expand Down

0 comments on commit e514395

Please sign in to comment.