Commit 9f41f42e authored by Martin Reinecke's avatar Martin Reinecke

small fix for LOS response

parent a03a8fbd
...@@ -62,7 +62,7 @@ def _comp_traverse(start, end, shp, dist, lo, mid, hi, erf): ...@@ -62,7 +62,7 @@ def _comp_traverse(start, end, shp, dist, lo, mid, hi, erf):
# hack: move away from potential grid crossings # hack: move away from potential grid crossings
dmin += 1e-7 dmin += 1e-7
dmax -= 1e-7 dmax -= 1e-7
if dmin > dmax: # no intersection if dmin >= dmax: # no intersection
out[i] = (np.full(0, 0), np.full(0, 0.)) out[i] = (np.full(0, 0), np.full(0, 0.))
continue continue
# determine coordinates of first cell crossing # determine coordinates of first cell crossing
......
Markdown is supported
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