aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-26 09:37:58 +0800
committerAaron LI <aly@aaronly.me>2017-10-26 09:37:58 +0800
commit0c37caca18d9a96216db766dcf593fa8bd5063ec (patch)
treefaa6d28daaa49db0f4d0a046905abddd61776cba
parent39102c1a8d195689d9a2aeaa13013ce54e58dbbc (diff)
downloadfg21sim-0c37caca18d9a96216db766dcf593fa8bd5063ec.tar.bz2
utils/grid.py: Disable Numba JIT for make_ellipse() & make_grid_ellipse()
-rw-r--r--fg21sim/utils/grid.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/fg21sim/utils/grid.py b/fg21sim/utils/grid.py
index dbc7f36..cf97045 100644
--- a/fg21sim/utils/grid.py
+++ b/fg21sim/utils/grid.py
@@ -85,10 +85,6 @@ def make_coordinate_grid(center, size, resolution):
return (lon, lat)
-@nb.jit(nb.float64[:, :](nb.types.UniTuple(nb.int64, 2),
- nb.types.UniTuple(nb.int64, 2),
- nb.float64),
- nopython=True)
def make_ellipse(center, radii, rotation):
"""
Make a square grid map containing the specified rotated ellipse.
@@ -125,10 +121,6 @@ def make_ellipse(center, radii, rotation):
return gridmap
-@nb.jit(nb.types.UniTuple(nb.float64[:, :], 3)(
- nb.types.UniTuple(nb.float64, 2), nb.types.UniTuple(nb.float64, 2),
- nb.float64, nb.float64),
- nopython=True)
def make_grid_ellipse(center, size, resolution, rotation=0.0):
"""
Make a square coordinate grid just containing the specified