Skip to content

Commit

Permalink
reduce duration of dFBA / NRM test run
Browse files Browse the repository at this point in the history
  • Loading branch information
artgoldberg committed Jan 4, 2021
1 parent 161a364 commit 428c8be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/submodels/test_multiple_submodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def test_run_submodel(self):
print(f'Reactants in dfba_obj_reactions that lack initial concentrations:')
print('\n'.join(sorted_reactant_ids))

N = 2
max_time = 100 # 3 * 60 * 60
N = 1
max_time = 50 # 3 * 60 * 60
seeds = [17, 19, 23, 29, 31]
dfba_options = dict(options=dict(presolve='on',
verbosity='status'))
Expand Down
2 changes: 1 addition & 1 deletion wc_sim/submodels/dfba.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def run_fba_solver(self):

if self._model_dumps % 100 == 0:
print()
print(f'--- {self.time}: solution ---')
print(f'--- time {self.time}: solution ---')
non_zero_fluxes = [f for f in self.reaction_fluxes.values() if 0 < f]
print(f'{len(non_zero_fluxes)} non-zero reaction fluxes')
for rxn_id, flux in self.reaction_fluxes.items():
Expand Down

0 comments on commit 428c8be

Please sign in to comment.