Skip to content

Commit

Permalink
Merge pull request #766 from haddocking/size-changed-issue
Browse files Browse the repository at this point in the history
update key deletion logic in topoaa
  • Loading branch information
VGPReys authored Jan 5, 2024
2 parents 3971346 + 66656a6 commit f3d89c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/haddock/libs/libontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,12 @@ def remove_missing(self) -> None:
idxs: list[int] = []
for idx, element in enumerate(self.output):
if isinstance(element, dict):
to_pop = []
for key2 in element:
if not element[key2].is_present():
element.pop(key2)
to_pop.append(key2)
for pop_me in to_pop:
element.pop(pop_me)
else:
if not element.is_present():
idxs.append(idx)
Expand Down

0 comments on commit f3d89c6

Please sign in to comment.