Skip to content

Commit

Permalink
fixed off-by-one error in signal writing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymchacon committed Oct 26, 2021
1 parent b59945e commit 6659ed4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions cometspy/comets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
__copyright__ = "Copyright 2019, The COMETS Consortium"
__credits__ = ["Djordje Bajic", "Jean Vila", "Jeremy Chacon"]
__license__ = "MIT"
__version__ = "0.4.14"
__comets_compatibility__ = "2.10.2" # version of comets this was tested with
__version__ = "0.4.15"
__comets_compatibility__ = "2.10.2" # version of comets this was tested with (except signaling)
__comets_compatibility_signaling__ = "2.10.7" # version signaling was tested with

__maintainer__ = "Djordje Bajic"
__email__ = "djordje.bajic@yale.edu"
Expand Down
3 changes: 1 addition & 2 deletions cometspy/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,7 @@ def write_comets_model(self, working_dir : str = None):
curr_col_names = col_names + [str(i) for i in range(n_parms)]
temp_df = pd.DataFrame(columns=curr_col_names)
if row.loc['REACTION_NUMBER'] != 'death':
# this is to deal with the off-by-one difference between the pandas table and java
row.loc['REACTION_NUMBER'] = str(int(row.loc['REACTION_NUMBER']) - 1)
row.loc['REACTION_NUMBER'] = str(int(row.loc['REACTION_NUMBER']))
temp_df.loc[0, 'REACTION_NUMBER'] = row.loc['REACTION_NUMBER']
temp_df.loc[0, 'EXCH_IND'] = row.loc['EXCH_IND']
temp_df.loc[0, 'BOUND'] = row.loc['BOUND']
Expand Down
Binary file added dist/cometspy-0.4.15.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
setup(
name='cometspy',
packages=['cometspy'],
version='0.4.14',
version='0.4.15',
license='GPL',
description='The Python interface to COMETS',
author='The COMETSPy Core Team',
author_email='djordje.bajic@yale.edu',
url='https://github.com/segrelab/cometspy',
download_url='https://github.com/segrelab/cometspy/archive/v0.4.14.tar.gz', # New releases here!!
download_url='https://github.com/segrelab/cometspy/archive/v0.4.15.tar.gz', # New releases here!!
keywords=['metabolism', 'dynamic', 'flux', 'balance', 'analysis', 'spatial', 'evolution'],
install_requires=[
# I get to this in a second
Expand Down

0 comments on commit 6659ed4

Please sign in to comment.