Skip to content

Commit

Permalink
feat: added method to get the version of AMICI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Aug 13, 2021
1 parent 8dee266 commit 65a72c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions biosimulators_amici/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
import amici

from ._version import __version__ # noqa: F401
# :obj:`str`: version

# from .core import exec_sedml_docs_in_combine_archive # noqa: F401


def get_simulator_version():
""" Get the version of AMICI
Returns:
:obj:`str`: version
"""
return amici.__version__
4 changes: 2 additions & 2 deletions biosimulators_amici/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
:License: MIT
"""

from . import get_simulator_version
from ._version import __version__
from .core import exec_sedml_docs_in_combine_archive
from biosimulators_utils.simulator.cli import build_cli
import amici

App = build_cli('biosimulators-amici', __version__,
'AMICI', amici.__version__, 'https://github.com/AMICI-dev/AMICI',
'AMICI', get_simulator_version(), 'https://github.com/AMICI-dev/AMICI',
exec_sedml_docs_in_combine_archive)


Expand Down

0 comments on commit 65a72c1

Please sign in to comment.