From 8085a5f50aaa423697ee60d2b89c0dc58a2dcdc1 Mon Sep 17 00:00:00 2001 From: maestroque Date: Mon, 24 Jun 2024 23:05:06 +0300 Subject: [PATCH] Add possibility for multiple function outputs with make_operation --- physutils/physio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/physutils/physio.py b/physutils/physio.py index f34498b..9cc19fd 100644 --- a/physutils/physio.py +++ b/physutils/physio.py @@ -44,7 +44,7 @@ def wrapper(data, *args, **kwargs): data = func(data, *args, **kwargs) # it shouldn't be, but don't bother appending to history if it is - if data is None: + if data[0] is None: return data # get parameters and sort by key name, dropping ignored items and @@ -57,7 +57,7 @@ def wrapper(data, *args, **kwargs): provided[k] = v.tolist() # append everything to data instance history - data._history += [(name, provided)] + data[0]._history += [(name, provided)] return data