From 0c37caca18d9a96216db766dcf593fa8bd5063ec Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 26 Oct 2017 09:37:58 +0800 Subject: utils/grid.py: Disable Numba JIT for make_ellipse() & make_grid_ellipse() --- fg21sim/utils/grid.py | 8 -------- 1 file changed, 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 -- cgit v1.2.2