Skip to content

Commit

Permalink
Fix: Don't require code context for call stack (fixes #1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 1, 2020
1 parent 275e599 commit d5ba708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/amici/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def wrapper_timer(*args, **kwargs):
recursion_level = sum(
frame.function == 'wrapper_timer'
and frame.filename == __file__
for frame in getouterframes(currentframe())
for frame in getouterframes(currentframe(), context=0)
)

recursion = ''
Expand Down

0 comments on commit d5ba708

Please sign in to comment.