You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve been trying to run the adjoin modeling example, but I encountered the following error. I was wondering if you could advise me how to solve it.
The error is:
Traceback (most recent call last):
File "/FWI/adjoint.py", line 48, in
stencil_v = Eq(v.backward, solve(pde, v.backward)[0])
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/solvers/solvers.py", line 1038, in solve
if fi.is_constant():
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/expr.py", line 628, in is_constant
expr = expr.simplify()
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1763, in simplify
return simplify(self, **kwargs)
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/simplify/simplify.py", line 746, in simplify
expr = short.xreplace(hollow_mul)
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1183, in xreplace
value, _ = self._xreplace(rule)
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1198, in _xreplace
a_xr = _xreplace(rule)
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1198, in _xreplace
a_xr = _xreplace(rule)
File "/local/devito/devito/finite_differences/derivative.py", line 225, in _xreplace
return self._new_from_self(subs=subs), True
File "/local/devito/devito/finite_differences/derivative.py", line 202, in _new_from_self
return Derivative(expr, *self.dims, **_kwargs)
File "/local/devito/devito/finite_differences/derivative.py", line 107, in new
obj._ppsubs = as_tuple(frozendict(i) for i in kwargs.get("subs", []))
File "/local/devito/devito/tools/utils.py", line 49, in as_tuple
t = tuple(item)
File "/local/devito/devito/finite_differences/derivative.py", line 107, in
obj._ppsubs = as_tuple(frozendict(i) for i in kwargs.get("subs", []))
File "/local/devito/devito/tools/data_structures.py", line 456, in init
self._dict = self.dict_cls(*args, **kwargs)
File "/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/rules.py", line 57, in getitem
if self._filter(key):
File "~/.conda/envs/devito/lib/python3.10/site-packages/sympy/simplify/simplify.py", line 741, in
x.is_Mul and
AttributeError: 'int' object has no attribute 'is_Mul'
Thank you,
The text was updated successfully, but these errors were encountered:
Hello,
I’ve been trying to run the adjoin modeling example, but I encountered the following error. I was wondering if you could advise me how to solve it.
The error is:
Traceback (most recent call last):
File "
/FWI/adjoint.py", line 48, in/.conda/envs/devito/lib/python3.10/site-packages/sympy/solvers/solvers.py", line 1038, in solvestencil_v = Eq(v.backward, solve(pde, v.backward)[0])
File "
if fi.is_constant():
File "
/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/expr.py", line 628, in is_constant/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1763, in simplifyexpr = expr.simplify()
File "
return simplify(self, **kwargs)
File "
/.conda/envs/devito/lib/python3.10/site-packages/sympy/simplify/simplify.py", line 746, in simplify/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1183, in xreplaceexpr = short.xreplace(hollow_mul)
File "
value, _ = self._xreplace(rule)
File "
/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1198, in _xreplace/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/basic.py", line 1198, in _xreplacea_xr = _xreplace(rule)
File "
a_xr = _xreplace(rule)
File "
/local/devito/devito/finite_differences/derivative.py", line 225, in _xreplace/local/devito/devito/finite_differences/derivative.py", line 202, in _new_from_selfreturn self._new_from_self(subs=subs), True
File "
return Derivative(expr, *self.dims, **_kwargs)
File "
/local/devito/devito/finite_differences/derivative.py", line 107, in new/local/devito/devito/tools/utils.py", line 49, in as_tupleobj._ppsubs = as_tuple(frozendict(i) for i in kwargs.get("subs", []))
File "
t = tuple(item)
File "/local/devito/devito/finite_differences/derivative.py", line 107, in
obj._ppsubs = as_tuple(frozendict(i) for i in kwargs.get("subs", []))
File "
/local/devito/devito/tools/data_structures.py", line 456, in init/.conda/envs/devito/lib/python3.10/site-packages/sympy/core/rules.py", line 57, in getitemself._dict = self.dict_cls(*args, **kwargs)
File "
if self._filter(key):
File "~/.conda/envs/devito/lib/python3.10/site-packages/sympy/simplify/simplify.py", line 741, in
x.is_Mul and
AttributeError: 'int' object has no attribute 'is_Mul'
Thank you,
The text was updated successfully, but these errors were encountered: