Skip to content

Commit

Permalink
Add possibility for multiple function outputs with make_operation
Browse files Browse the repository at this point in the history
  • Loading branch information
maestroque committed Jun 24, 2024
1 parent 045fe0f commit 8085a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physutils/physio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 8085a5f

Please sign in to comment.