Skip to content

IndexError in amici/logging.py:wrapper_timer #1347

@dweindl

Description

@dweindl

When using AMICI from within snakemake, I run into the following error:

IndexError: list index out of range

  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/amici/logging.py", line 186, in wrapper_timer
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/inspect.py", line 1491, in getouterframes
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/inspect.py", line 1465, in getframeinfo
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/inspect.py", line 840, in findsource

Not yet sure where the underlying problem comes from, but it effectively prevents using AMICI functions decorated with log_execution_time from within a snakemake workflow.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions