Commit bdb90c94 authored by Martin Reinecke's avatar Martin Reinecke
Browse files


parent 18ea9e67
...@@ -260,8 +260,7 @@ _current_module = sys.modules[__name__] ...@@ -260,8 +260,7 @@ _current_module = sys.modules[__name__]
for f in ["sqrt", "exp", "log", "tanh", "positive_tanh", "conjugate"]: for f in ["sqrt", "exp", "log", "tanh", "positive_tanh", "conjugate"]:
def func(f): def func(f):
def func2(x): def func2(x):
from .linearization import Linearization if isinstance(x, (Field, MultiField)):
if isinstance(x, (Field, MultiField, Linearization)):
return getattr(x, f)() return getattr(x, f)()
else: else:
return getattr(np, f)(x) 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