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
ada9e2d2
Commit
ada9e2d2
authored
Sep 13, 2018
by
Reimar H Leike
Browse files
revoking some changes of los response where ther was casting to int64 of floats
parent
e672d725
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/los_response.py
View file @
ada9e2d2
...
...
@@ -83,8 +83,8 @@ def _comp_traverse(start, end, shp, dist, lo, mid, hi, erf):
idx
=
np
.
argsort
(
cdist
)
cdist
=
cdist
[
idx
]
add
=
add
[
idx
]
cdist
=
np
.
append
(
np
.
full
(
1
,
dmin
,
dtype
=
np
.
int64
),
cdist
)
cdist
=
np
.
append
(
cdist
,
np
.
full
(
1
,
dmax
,
dtype
=
np
.
int64
))
cdist
=
np
.
append
(
np
.
full
(
1
,
dmin
),
cdist
)
cdist
=
np
.
append
(
cdist
,
np
.
full
(
1
,
dmax
))
corfac
=
np
.
linalg
.
norm
(
dir
*
dist
)
cdist
*=
corfac
wgt
=
np
.
diff
(
cdist
)
...
...
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