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
b1bd9aae
Commit
b1bd9aae
authored
Jun 06, 2021
by
Lukas Platz
Browse files
remove redundant if clause
parent
067817dc
Pipeline
#102974
passed with stages
in 13 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/domains/rg_space.py
View file @
b1bd9aae
...
...
@@ -61,10 +61,7 @@ class RGSpace(StructuredDomain):
self
.
_rdistances
=
_realdistances
else
:
if
distances
is
None
:
if
self
.
_harmonic
:
self
.
_rdistances
=
tuple
(
1.
/
(
np
.
array
(
self
.
_shape
)))
else
:
self
.
_rdistances
=
tuple
(
1.
/
s
for
s
in
self
.
_shape
)
self
.
_rdistances
=
tuple
(
1.
/
(
np
.
array
(
self
.
_shape
)))
elif
np
.
isscalar
(
distances
):
if
self
.
harmonic
:
self
.
_rdistances
=
tuple
(
...
...
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