Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed May 24, 2024
1 parent dcc6b0b commit ea2386a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flexsolve/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def __call__(self, x, *args):
x = copy(x)
self.xs.append(x)
y = self.f(x, *args)
self.ys.append(y)
if isinstance(y, tuple):
self.ys.append(y[0])
else:
self.ys.append(y)
return y

def archive(self, name):
Expand Down

0 comments on commit ea2386a

Please sign in to comment.