Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
983fe4e4
Commit
983fe4e4
authored
Oct 05, 2018
by
Philipp Arras
Browse files
Fixup
parent
15dd034f
Changes
1
Show whitespace changes
Inline
Side-by-side
nifty5/operators/linear_operator.py
View file @
983fe4e4
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment