diff --git a/km3io/daq.py b/km3io/daq.py index cab58672a59b87c5d48e112b11a76df61c1f89b4..c5bbd95b13d84d832a2bb45b3078694452b96165 100644 --- a/km3io/daq.py +++ b/km3io/daq.py @@ -4,12 +4,15 @@ import numpy as np if os.getenv("DISABLE_NUMBA"): print("Numba is disabled, DAQ helper functions will not work!") + # A hack to to get the @vectorize, @guvectorize and nb.types silently pass. def dummy_decorator(*args, **kwargs): def decorator(f): def wrapper(*args, **kwargs): return dummy_decorator(*args, **kwargs) + return wrapper + return decorator vectorize = dummy_decorator