Skip to content

Commit

Permalink
Compatibility with sympy 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Apr 22, 2021
1 parent 80eff34 commit 46cf035
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qupulse/utils/sympy.py
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 46cf035

Please sign in to comment.