Skip to content

Commit a549592

Browse files
author
Christopher Henry
committed
Fixing bug in debuging prints
1 parent d12f2cd commit a549592

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modelseedpy/core/msgapfill.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,9 @@ def run_multi_gapfill(
569569
print("Bounds before final testing")
570570
for item in model.integrated_gapfillings:
571571
for rxn in item["new"]:
572-
print(rxn.id,item["new"][rxn],model.reactions.get_by_id(rxn.id).lower_bound,model.reactions.get_by_id(rxn.id).upper_bound)
572+
print(rxn.id,item["new"][rxn],self.model.reactions.get_by_id(rxn.id).lower_bound,self.model.reactions.get_by_id(rxn.id).upper_bound)
573573
for rxn in item["reversed"]:
574-
print(rxn.id,item["new"][rxn],model.reactions.get_by_id(rxn.id).lower_bound,model.reactions.get_by_id(rxn.id).upper_bound)
574+
print(rxn.id,item["new"][rxn],self.model.reactions.get_by_id(rxn.id).lower_bound,self.model.reactions.get_by_id(rxn.id).upper_bound)
575575
unneeded = self.mdlutl.test_solution(
576576
cumulative_solution,
577577
test_output["targets"],
@@ -583,9 +583,9 @@ def run_multi_gapfill(
583583
print("Bounds after final testing")
584584
for item in model.integrated_gapfillings:
585585
for rxn in item["new"]:
586-
print(rxn.id,item["new"][rxn],model.reactions.get_by_id(rxn.id).lower_bound,model.reactions.get_by_id(rxn.id).upper_bound)
586+
print(rxn.id,item["new"][rxn],self.model.reactions.get_by_id(rxn.id).lower_bound,self.model.reactions.get_by_id(rxn.id).upper_bound)
587587
for rxn in item["reversed"]:
588-
print(rxn.id,item["new"][rxn],model.reactions.get_by_id(rxn.id).lower_bound,model.reactions.get_by_id(rxn.id).upper_bound)
588+
print(rxn.id,item["new"][rxn],self.model.reactions.get_by_id(rxn.id).lower_bound,self.model.reactions.get_by_id(rxn.id).upper_bound)
589589
print("Unneeded in global gapfill:",unneeded)
590590
elif gapfilling_mode == "Sequential":
591591
#Restoring the gapfilling objective function

0 commit comments

Comments
 (0)