aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/grid.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/utils/grid.py')
-rw-r--r--fg21sim/utils/grid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/utils/grid.py b/fg21sim/utils/grid.py
index a1d7d2c..b409a1b 100644
--- a/fg21sim/utils/grid.py
+++ b/fg21sim/utils/grid.py
@@ -135,7 +135,7 @@ def make_grid_ellipse(center, size, resolution, rotation=0.0):
# Fill the ellipse into the grid
r0, c0 = np.floor(np.array(shape) / 2.0).astype(np.int64)
radii = np.ceil(0.5*np.array(size)/resolution).astype(np.int64)
- rr, cc = ellipse(r0, c0, radii[0], radii[1], shape=shape)
+ rr, cc = ellipse((r0, c0), (radii[0], radii[1]), shape=shape)
gridmap = np.zeros(shape)
# XXX: ``numba`` only support one advanced index
for ri, ci in zip(rr, cc):