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

Another fixup

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