Skip to content
GitLab
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
fae648b9
Commit
fae648b9
authored
Sep 25, 2017
by
Martin Reinecke
Browse files
simplification
parent
ba4daa84
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/laplace_operator/laplace_operator.py
View file @
fae648b9
...
...
@@ -42,12 +42,9 @@ class LaplaceOperator(EndomorphicOperator):
def
__init__
(
self
,
domain
,
default_spaces
=
None
,
logarithmic
=
True
):
super
(
LaplaceOperator
,
self
).
__init__
(
default_spaces
)
self
.
_domain
=
DomainTuple
.
make
(
domain
)
if
len
(
self
.
domain
)
!=
1
:
if
len
(
self
.
domain
)
!=
1
or
not
isinstance
(
self
.
domain
[
0
],
PowerSpace
)
:
raise
ValueError
(
"The domain must contain exactly one PowerSpace."
)
if
not
isinstance
(
self
.
domain
[
0
],
PowerSpace
):
raise
TypeError
(
"The domain must contain exactly one PowerSpace."
)
self
.
_logarithmic
=
bool
(
logarithmic
)
pos
=
self
.
domain
[
0
].
k_lengths
.
copy
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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