Skip to content

Commit

Permalink
ENH: Use njit instead of jit. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Feb 12, 2024
1 parent 3090403 commit e9009fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hydrosignatures/hydrosignatures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Function for computing hydrologic signature."""
# pyright: reportGeneralTypeIssues=false, reportAttributeAccessIssue=false
# pyright: reportGeneralTypeIssues=false
from __future__ import annotations

import calendar
Expand All @@ -24,10 +24,10 @@

try:
from numba import config as numba_config
from numba import jit, prange
from numba import njit, prange

ngjit = functools.partial(jit, nopython=True, nogil=True) # pyright: ignore[reportAssignmentType]
numba_config.THREADING_LAYER = "workqueue" # pyright: ignore[reportGeneralTypeIssues]
ngjit = functools.partial(njit, nogil=True) # pyright: ignore[reportAssignmentType]
numba_config.THREADING_LAYER = "workqueue"
has_numba = True
except ImportError:
has_numba = False
Expand Down

0 comments on commit e9009fb

Please sign in to comment.