Commit a56d26bc authored by Philipp Arras's avatar Philipp Arras
Browse files

Cleanup

parent 66c76e93
Pipeline #73811 passed with stages
in 19 minutes and 34 seconds
......@@ -709,6 +709,7 @@ class Field(Operator):
tmp = ptw_dict[op][1](self._val, *argstmp, **kwargstmp)
return (Field(self._domain, tmp[0]), Field(self._domain, tmp[1]))
for op in ["__add__", "__radd__",
"__sub__", "__rsub__",
"__mul__", "__rmul__",
......
......@@ -18,7 +18,6 @@
import numpy as np
from .sugar import makeOp
from . import utilities
from .operators.operator import Operator
......@@ -277,7 +276,6 @@ class Linearization(Operator):
ContractionOperator(self._jac.target, spaces, 1)(self._jac))
def ptw(self, op, *args, **kwargs):
from .pointwise import ptw_dict
t1, t2 = self._val.ptw_with_deriv(op, *args, **kwargs)
return self.new(t1, makeOp(t2)(self._jac))
......
......@@ -15,8 +15,6 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..field import Field
from ..multi_field import MultiField
from .operator import Operator
......@@ -170,7 +168,6 @@ class LinearOperator(Operator):
def __call__(self, x):
"""Same as :meth:`times`"""
from ..linearization import Linearization
if x.jac is not None:
return x.new(self(x._val), self).prepend_jac(x.jac)
if x.val is not None:
......
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