Skip to content

Commit

Permalink
feat: added method to get the version of COBRApy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Aug 13, 2021
1 parent 1234f94 commit fb584fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions biosimulators_cobrapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@
# :obj:`str`: version

from .core import exec_sedml_docs_in_combine_archive # noqa: F401

import cobra


def get_simulator_version():
""" Get the version of COBRApy
Returns:
:obj:`str`: version
"""
return cobra.__version__
4 changes: 2 additions & 2 deletions biosimulators_cobrapy/__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 cobra

App = build_cli('biosimulators-cobrapy', __version__,
'COBRApy', cobra.__version__, 'https://opencobra.github.io/cobrapy',
'COBRApy', get_simulator_version(), 'https://opencobra.github.io/cobrapy',
exec_sedml_docs_in_combine_archive)


Expand Down

0 comments on commit fb584fc

Please sign in to comment.