Skip to content

Commit

Permalink
Fix invalid type error when loading antimony model from file
Browse files Browse the repository at this point in the history
`pathlib.Path` -> `str`
  • Loading branch information
dweindl committed Jan 31, 2024
1 parent aa39743 commit 6e67fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sdist/amici/antimony_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def antimony2sbml(ant_model: Union[str, Path]) -> str:
is_file = False

if is_file:
status = ant.loadAntimonyFile(ant_model)
status = ant.loadAntimonyFile(str(ant_model))
else:
status = ant.loadAntimonyString(ant_model)
if status < 0:
Expand Down

0 comments on commit 6e67fc2

Please sign in to comment.