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
Neel Shah
NIFTy
Commits
b1bd9aae
Commit
b1bd9aae
authored
Jun 06, 2021
by
Lukas Platz
Browse files
remove redundant if clause
parent
067817dc
Changes
1
Show whitespace changes
Inline
Side-by-side
src/domains/rg_space.py
View file @
b1bd9aae
...
@@ -61,10 +61,7 @@ class RGSpace(StructuredDomain):
...
@@ -61,10 +61,7 @@ class RGSpace(StructuredDomain):
self
.
_rdistances
=
_realdistances
self
.
_rdistances
=
_realdistances
else
:
else
:
if
distances
is
None
:
if
distances
is
None
:
if
self
.
_harmonic
:
self
.
_rdistances
=
tuple
(
1.
/
(
np
.
array
(
self
.
_shape
)))
self
.
_rdistances
=
tuple
(
1.
/
(
np
.
array
(
self
.
_shape
)))
else
:
self
.
_rdistances
=
tuple
(
1.
/
s
for
s
in
self
.
_shape
)
elif
np
.
isscalar
(
distances
):
elif
np
.
isscalar
(
distances
):
if
self
.
harmonic
:
if
self
.
harmonic
:
self
.
_rdistances
=
tuple
(
self
.
_rdistances
=
tuple
(
...
...
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