Commit bdb90c94 authored by Martin Reinecke's avatar Martin Reinecke

fix

parent 18ea9e67
......@@ -260,8 +260,7 @@ _current_module = sys.modules[__name__]
for f in ["sqrt", "exp", "log", "tanh", "positive_tanh", "conjugate"]:
def func(f):
def func2(x):
from .linearization import Linearization
if isinstance(x, (Field, MultiField, Linearization)):
if isinstance(x, (Field, MultiField)):
return getattr(x, f)()
else:
return getattr(np, f)(x)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment