Skip to content

Commit

Permalink
Fix missing import in amici/petab/petab_import.py (#2342)
Browse files Browse the repository at this point in the history
fixes 
```
Traceback (most recent call last):
  File "//./mnt/src/optimize.py", line 557, in <module>
    model, model_petab_problem = _model_import(
  File "/mnt/src/util.py", line 44, in _model_import
    model = amici.petab_import.import_petab_problem(
  File "/usr/local/lib/python3.10/dist-packages/amici/petab/petab_import.py", line 79, in import_petab_problem
    warn(
NameError: name 'warn' is not defined
```
  • Loading branch information
plakrisenko authored Mar 4, 2024
1 parent 3a6b0df commit 0f961d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/sdist/amici/petab/petab_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import shutil
from pathlib import Path
from typing import Union
from warnings import warn

import amici
import petab
Expand Down

0 comments on commit 0f961d6

Please sign in to comment.