Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/mcPAModelpy' into mcPAModelpy
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiralVdB committed Jan 16, 2025
2 parents 08d5c69 + a0bbd78 commit 876d32f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/PAModelpy/MembraneSector.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def _add_membrane_constraint(self, model):

self.membrane_proteins = {}

self.total_occupied_membrane = 0
coefficients = {
model.reactions.get_by_id(model.BIOMASS_REACTION).forward_variable: -self.slope
}
Expand Down Expand Up @@ -79,13 +78,6 @@ def _add_membrane_constraint(self, model):
model.solver.update()
occupied_membrane.set_linear_coefficients(coefficients=coefficients)

# # Debugging
# for rxn, lb in model.rxn_old_bounds_lb.items():
# model.reactions.get_by_id(rxn).lower_bound = lb
#
# for rxn, ub in model.rxn_old_bounds_ub.items():
# model.reactions.get_by_id(rxn).upper_bound = ub

def calculate_occupied_membrane(self, model):
occupied_membrane = 0

Expand Down Expand Up @@ -116,7 +108,6 @@ def _update_membrane_constraint(self, new_max_area:float, model):
self.max_membrane_area = new_max_area
self.membrane_proteins = {}

self.total_occupied_membrane = 0
coefficients = {
model.reactions.get_by_id(model.BIOMASS_REACTION).forward_variable: -self.slope
}
Expand Down

0 comments on commit 876d32f

Please sign in to comment.