Skip to content

Commit

Permalink
use nogil in numba decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed May 14, 2023
1 parent 6d61a04 commit 70954c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyrfu/pyrf/ebsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _freq_int(freq_int, delta_b):
return any_range, freq_int, fs_out, out_time


@numba.jit(cache=True, parallel=True, nopython=True)
@numba.jit(cache=True, nogil=True, parallel=True, nopython=True)
def _average_data(data=None, x=None, y=None, av_window=None):
# average data with time x to time y using window

Expand Down Expand Up @@ -217,7 +217,7 @@ def _ee_xxyyzzss(power_ex_plot, power_ey_plot, power_ez_plot, power_2e_plot):
return np.real(ee_xxyyzzss)


@numba.jit(nopython=True, fastmath=True, parallel=True, cache=True)
@numba.jit(cache=True, nogil=True, parallel=True, nopython=True)
def _censure_plot(inp, idx_nan, censure, n_data, a_):
out = inp.copy()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
__email__ = "[email protected]"
__copyright__ = "Copyright 2020-2023"
__license__ = "MIT"
__version__ = "2.3.29"
__version__ = "2.3.30"
__status__ = "Prototype"

HERE = pathlib.Path(__file__).parent
Expand Down

0 comments on commit 70954c1

Please sign in to comment.