Skip to content

Commit f2f5e75

Browse files
committed
refactor: increment integer cut in finally
1 parent 118566e commit f2f5e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cameo/strain_design/pathway_prediction/pathway_predictor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ def run(self, product=None, max_predictions=float("inf"), min_production=.1,
371371
pathways.append(pathway)
372372
logger.info("Max flux: %.5G", production_flux)
373373
pathway_counter += 1
374-
integer_cut_counter += 1
375374
if callback is not None:
376375
callback(pathway)
377376
else:
@@ -380,7 +379,8 @@ def run(self, product=None, max_predictions=float("inf"), min_production=.1,
380379
"flux %.5G is below the requirement %.5G. "
381380
"Skipping.", pathway, production_flux,
382381
non_zero_flux_threshold)
383-
integer_cut_counter += 1
382+
finally:
383+
integer_cut_counter += 1
384384

385385
return PathwayPredictions(pathways)
386386

0 commit comments

Comments
 (0)