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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
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
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
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