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
06210b76
Commit
06210b76
authored
Apr 21, 2017
by
Theo Steininger
Browse files
Fixed spacing convention in test_lm_space.py._distance_array_helper
parent
12ef5229
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_spaces/test_lm_space.py
View file @
06210b76
...
...
@@ -58,16 +58,14 @@ def _distance_array_helper(index_arr, lmax):
index_half
=
index_arr
else
:
if
(
index_arr
-
lmax
)
%
2
==
0
:
index_half
=
(
index_arr
+
lmax
)
/
2
index_half
=
(
index_arr
+
lmax
)
/
2
else
:
index_half
=
(
index_arr
+
lmax
+
1
)
/
2
index_half
=
(
index_arr
+
lmax
+
1
)
/
2
m
=
(
np
.
ceil
(((
2
*
lmax
+
1
)
-
np
.
sqrt
((
2
*
lmax
+
1
)
**
2
-
8
*
(
index_half
-
lmax
)))
/
2
)
).
astype
(
int
)
m
=
np
.
ceil
(((
2
*
lmax
+
1
)
-
np
.
sqrt
((
2
*
lmax
+
1
)
**
2
-
8
*
(
index_half
-
lmax
)))
/
2
).
astype
(
int
)
return
index_half
-
m
*
(
2
*
lmax
+
1
-
m
)
//
2
return
index_half
-
m
*
(
2
*
lmax
+
1
-
m
)
//
2
def
get_distance_array_configs
():
...
...
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