Skip to content

Commit

Permalink
Merge pull request #185 from medema-group/hotfix/get-reverse-cds
Browse files Browse the repository at this point in the history
fix yield statement
  • Loading branch information
adraismawur authored Oct 2, 2024
2 parents 054e396 + 2fc96ab commit 37e614a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion big_scape/genbank/bgc_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def get_cds(self, return_all=False, reverse=False) -> Generator[CDS, None, None]
if return_all:
# TODO: I don't like this solution. maybe go back to the more difficult one
if reverse:
return reversed(self.parent_gbk.genes)
yield from reversed(self.parent_gbk.genes)
return

yield from self.parent_gbk.genes
return
Expand Down

0 comments on commit 37e614a

Please sign in to comment.