Skip to content

Commit

Permalink
fix(rplibs): store group.getId() before removing
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Nov 29, 2023
1 parent 7483010 commit 8263282
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rptools/rplibs/rpSBML.py
Original file line number Diff line number Diff line change
Expand Up @@ -1813,8 +1813,9 @@ def rm_isolated_species(self) -> None:
"""
group = self.getModel().getPlugin('groups').getGroup("rp_fba_ignored_species")
if group:
self.getModel().getPlugin('groups').removeGroup(group.getId())
self.logger.debug("Remove " + str(group.getId()) + " group")
id = group.getId()
self.getModel().getPlugin('groups').removeGroup(id)
self.logger.debug(f"{str(id)} group removed")


def get_isolated_species(self) -> List[str]:
Expand Down

0 comments on commit 8263282

Please sign in to comment.