Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
numba_helper.py
1try:
2 from numba import njit
3
4 HAS_NUMBA = True
5except ImportError:
6 HAS_NUMBA = False
7
8
9def maybe_njit(fn):
10 if HAS_NUMBA:
11 return njit(fn)
12 return fn