From a608820bd55c3f67968c497d33d40cfb4ed66f14 Mon Sep 17 00:00:00 2001 From: Stefano Moia Date: Wed, 9 Oct 2024 10:56:35 +0200 Subject: [PATCH] Fix arguments pass in wrapper --- physioqc/metrics/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/physioqc/metrics/utils.py b/physioqc/metrics/utils.py index c0b8d74..8752c64 100644 --- a/physioqc/metrics/utils.py +++ b/physioqc/metrics/utils.py @@ -52,9 +52,9 @@ def physio_or_numpy(func): @functools.wraps(func) def wrapper(*args, **kwargs): - # signal must always be args[0] + # signal/data must always be args[0] if hasattr(args[0], "history"): - args[0] = args[0].data + args = (args[0].data,) + args[1:] return func(*args, **kwargs) return wrapper