Skip to content

Commit

Permalink
treat object of class Idx in SymbolicExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
saidctb authored and yguclu committed Jan 27, 2020
1 parent d668c6d commit c5786c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sympde/topology/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from collections import OrderedDict

from sympy import Indexed, IndexedBase, Matrix, ImmutableDenseMatrix
from sympy import Indexed, IndexedBase, Idx, Matrix, ImmutableDenseMatrix
from sympy import Function
from sympy import sympify
from sympy.core import Basic
Expand Down Expand Up @@ -851,6 +851,9 @@ def eval(cls, *_args, **kwargs):
elif isinstance(expr, Indexed):
return expr

elif isinstance(expr, Idx):
return expr

elif isinstance(expr, Function):
return expr

Expand Down

0 comments on commit c5786c0

Please sign in to comment.