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