Skip to content

Commit 53956bb

Browse files
authored
Merge pull request #41 from smoia/fix/wrapper
Fix arguments pass in `physio_or_numpy` wrapper
2 parents 2842a86 + a608820 commit 53956bb

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)