Skip to content

Commit

Permalink
unnecessary global variable in MembraneSector deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
titaniasugiarto committed Jan 14, 2025
1 parent 320f7b8 commit a0bbd78
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 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 @@ -109,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 a0bbd78

Please sign in to comment.