Skip to content

Commit

Permalink
Merge pull request #573 from qutech/fix/sympy_1.8
Browse files Browse the repository at this point in the history
Compatibility with sympy 1.8
  • Loading branch information
terrorfisch committed Apr 22, 2021
2 parents 31573ce + 46cf035 commit 2737cae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qupulse/utils/sympy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@

import sympy
import numpy
from sympy.printing.pycode import NumPyPrinter

try:
from sympy.printing.numpy import NumPyPrinter
except ImportError:
# sympy moved NumPyPrinter in release 1.8
from sympy.printing.pycode import NumPyPrinter
warnings.warn("Please update sympy.", DeprecationWarning)

try:
import scipy.special as _special_functions
Expand Down

0 comments on commit 2737cae

Please sign in to comment.