Commit ada9e2d2 authored by Reimar H Leike's avatar Reimar H Leike
Browse files

revoking some changes of los response where ther was casting to int64 of floats

parent e672d725
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment