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
0a0258b4
Commit
0a0258b4
authored
Oct 12, 2018
by
Sebastian Hutschenreuter
Browse files
fix
parent
b5befab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/operator.py
View file @
0a0258b4
...
...
@@ -30,7 +30,7 @@ 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
(
dom_op
,
[
DomainTuple
,
MultiDomain
]
):
if
not
isinstance
(
dom_op
,
(
DomainTuple
,
MultiDomain
,)
):
s
+=
" Your operator's domain 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