From d138a58c488cd0c584778eb551e445e9f73b7be1 Mon Sep 17 00:00:00 2001 From: Haris Zafeiropoulos Date: Thu, 25 Apr 2024 15:57:15 +0200 Subject: [PATCH] set medium after provided by user #95 --- dingo/MetabolicNetwork.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dingo/MetabolicNetwork.py b/dingo/MetabolicNetwork.py index 738aa730..3d63094b 100644 --- a/dingo/MetabolicNetwork.py +++ b/dingo/MetabolicNetwork.py @@ -332,6 +332,8 @@ def set_active_bound(reaction: str, reac_index: int, bound: float) -> None: set_active_bound( rxn_id, reac_index, min(0.0, -self._lb[reac_index] if is_export else self._ub[reac_index]) ) + self._medium = medium + self._opt_vector = None @reactions_map.setter def reactions_map(self, value):