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
0c4e7310
Commit
0c4e7310
authored
Mar 25, 2018
by
Martin Reinecke
Browse files
remove superfluous property
parent
37692fee
Pipeline
#26456
passed with stage
in 5 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/operators/laplace_operator.py
View file @
0c4e7310
...
@@ -50,10 +50,8 @@ class LaplaceOperator(EndomorphicOperator):
...
@@ -50,10 +50,8 @@ class LaplaceOperator(EndomorphicOperator):
if
not
isinstance
(
self
.
_domain
[
self
.
_space
],
PowerSpace
):
if
not
isinstance
(
self
.
_domain
[
self
.
_space
],
PowerSpace
):
raise
ValueError
(
"Operator must act on a PowerSpace."
)
raise
ValueError
(
"Operator must act on a PowerSpace."
)
self
.
_logarithmic
=
bool
(
logarithmic
)
pos
=
self
.
domain
[
self
.
_space
].
k_lengths
.
copy
()
pos
=
self
.
domain
[
self
.
_space
].
k_lengths
.
copy
()
if
self
.
logarithmic
:
if
logarithmic
:
pos
[
1
:]
=
np
.
log
(
pos
[
1
:])
pos
[
1
:]
=
np
.
log
(
pos
[
1
:])
pos
[
0
]
=
pos
[
1
]
-
1.
pos
[
0
]
=
pos
[
1
]
-
1.
...
@@ -74,10 +72,6 @@ class LaplaceOperator(EndomorphicOperator):
...
@@ -74,10 +72,6 @@ class LaplaceOperator(EndomorphicOperator):
def
capability
(
self
):
def
capability
(
self
):
return
self
.
TIMES
|
self
.
ADJOINT_TIMES
return
self
.
TIMES
|
self
.
ADJOINT_TIMES
@
property
def
logarithmic
(
self
):
return
self
.
_logarithmic
def
_times
(
self
,
x
):
def
_times
(
self
,
x
):
axes
=
x
.
domain
.
axes
[
self
.
_space
]
axes
=
x
.
domain
.
axes
[
self
.
_space
]
axis
=
axes
[
0
]
axis
=
axes
[
0
]
...
...
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