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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
983fe4e4
Commit
983fe4e4
authored
Oct 05, 2018
by
Philipp Arras
Browse files
Fixup
parent
15dd034f
Changes
1
Hide 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
Markdown
is supported
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