Skip to content

Commit b94f535

Browse files
committed
fix: set cobra solver earlier
1 parent 1ba966b commit b94f535

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main/como/create_context_specific_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def _build_model( # noqa: C901
419419
force excluded even if they meet GPR association requirements using the force exclude file.
420420
"""
421421
config = Config()
422+
cobra.Configuration().solver = solver.lower()
422423
reference_model: cobra.Model
423424
match general_model_file.suffix:
424425
case ".mat":
@@ -442,7 +443,6 @@ def _build_model( # noqa: C901
442443

443444
# set solver
444445
reference_model.solver = solver.lower()
445-
cobra.Configuration().solver = solver.lower()
446446

447447
# check number of unsolvable reactions for reference model under media assumptions
448448
# incon_rxns, cobra_model = _feasibility_test(cobra_model, "before_seeding")

0 commit comments

Comments
 (0)