Skip to content

Commit

Permalink
Merge pull request #541 from opencobra/fix-boundary
Browse files Browse the repository at this point in the history
Fix boundary
  • Loading branch information
Midnighter committed Dec 10, 2018
2 parents 0a6e4f4 + f293d21 commit bb70952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ History

Next Release
------------
* Adjust tests to the change in the ``add_boundary`` interface.
* Identify blocked reactions using the cobrapy built-in function.

0.8.7 (2018-11-21)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_for_support/test_for_biomass.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def precursors_uptake_limited(base):
rxn3 = cobra.Reaction("MET_Ctec", lower_bound=-1000, upper_bound=1000)
rxn3.add_metabolites({met_c: 1, met_c1: -1})
base.add_reactions([rxn, rxn1, rxn2, rxn3])
base.add_boundary(met_a1, ub=5)
base.add_boundary(met_a1, lb=-5, ub=5)
base.add_boundary(met_b1)
base.add_boundary(met_c1)
base.objective = rxn
Expand Down Expand Up @@ -214,8 +214,8 @@ def precursors_not_in_medium(base):
rxn3 = cobra.Reaction("MET_Ctec", lower_bound=-1000, upper_bound=1000)
rxn3.add_metabolites({met_c: 1, met_c1: -1})
base.add_reactions([rxn, rxn1, rxn2, rxn3])
base.add_boundary(met_a1, ub=0)
base.add_boundary(met_b1, ub=0)
base.add_boundary(met_a1, lb=0)
base.add_boundary(met_b1, lb=0)
base.add_boundary(met_c1)
base.objective = rxn
return base
Expand Down Expand Up @@ -511,7 +511,7 @@ def test_production_biomass_precursors_default(model, num):
"""
Expect that there are no biomass precursors that cannot be produced.
This is without changing the model"s default state.
This is without changing the model's default state.
"""
biomass_rxns = helpers.find_biomass_reaction(model)
for rxn in biomass_rxns:
Expand Down

0 comments on commit bb70952

Please sign in to comment.