Skip to content

Commit

Permalink
sympy: proper version check
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 5, 2021
1 parent 624e3ba commit c598d78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devito/finite_differences/elementary.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import sympy

from distutils import version

from devito.finite_differences.differentiable import DifferentiableFunction, diffify


Expand Down Expand Up @@ -646,7 +648,7 @@ class mathieucprime(DifferentiableFunction, sympy.mathieucprime):


# New elementary functions in sympy 1.8
if float(sympy.__version__) >= 1.8:
if version.LooseVersion(sympy.__version__) >= version.LooseVersion('1.8'):

class motzkin(DifferentiableFunction, sympy.motzkin):
__sympy_class__ = sympy.motzkin
Expand Down

0 comments on commit c598d78

Please sign in to comment.