Commit 983fe4e4 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixup

parent 15dd034f
......@@ -263,7 +263,8 @@ 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)
or isinstance(x.domain, 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`."
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