aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/draw.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/utils/draw.py')
-rw-r--r--fg21sim/utils/draw.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/utils/draw.py b/fg21sim/utils/draw.py
index 20e7042..b303f05 100644
--- a/fg21sim/utils/draw.py
+++ b/fg21sim/utils/draw.py
@@ -42,9 +42,9 @@ def _ellipse_in_shape(shape, center, radii):
r_o, c_o = center
r_r, c_r = radii
distances = (((r_lim-r_o) / r_r) * ((r_lim-r_o) / r_r) +
- ((c_lim-c_o) / c_r) * ((c_lim-c_o / c_r)))
xi, yi = np.nonzero(distances < 1.0)
return (xi, yi)
+ ((c_lim-c_o) / c_r) * ((c_lim-c_o) / c_r))
@nb.jit(nb.types.UniTuple(nb.int64[:], 2)(nb.int64, nb.int64,