From 940aafa1694d9631d05b1e11cf0f327d3624679a Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Mon, 2 Mar 2020 23:03:14 +0100 Subject: [PATCH] Make yapf --- km3io/daq.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/km3io/daq.py b/km3io/daq.py index cab5867..c5bbd95 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 -- GitLab