Skip to content

Commit a608820

Browse files
committed
Fix arguments pass in wrapper
1 parent 2842a86 commit a608820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

physioqc/metrics/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def physio_or_numpy(func):
5252

5353
@functools.wraps(func)
5454
def wrapper(*args, **kwargs):
55-
# signal must always be args[0]
55+
# signal/data must always be args[0]
5656
if hasattr(args[0], "history"):
57-
args[0] = args[0].data
57+
args = (args[0].data,) + args[1:]
5858
return func(*args, **kwargs)
5959

6060
return wrapper

0 commit comments

Comments
 (0)