Commit db3e0bfa authored by Philipp Arras's avatar Philipp Arras

Simplification

parent dcfab6d7
......@@ -263,8 +263,6 @@ class LinearOperator(Operator):
s = "The operator's and field's domains don't match."
from ..domain_tuple import DomainTuple
from ..multi_domain import MultiDomain
if not isinstance(self._dom(mode),
[DomainTuple, MultiDomain]) or isinstance(
x.domain, [DomainTuple, MultiDomain]):
s += " One of the domains is neither a `DomainTuple` nor a `MultiDomain`."
if not isinstance(self._dom(mode), [DomainTuple, MultiDomain]):
s += " Your operator's domain is neither a `DomainTuple` nor a `MultiDomain`."
raise ValueError(s)
......@@ -70,10 +70,8 @@ class Operator(NiftyMetaBase()):
s = "The operator's and field's domains don't match."
from ..domain_tuple import DomainTuple
from ..multi_domain import MultiDomain
if not isinstance(self._dom(mode),
[DomainTuple, MultiDomain]) or isinstance(
x.domain, [DomainTuple, MultiDomain]):
s += " One of the domains is neither a `DomainTuple` nor a `MultiDomain`."
if not isinstance(self._dom(mode), [DomainTuple, MultiDomain]):
s += " Your operator's domain is neither a `DomainTuple` nor a `MultiDomain`."
raise ValueError(s)
def __call__(self, 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