From 2fc96ab7223a3170ef0afa727eeee51e14f93ae3 Mon Sep 17 00:00:00 2001 From: Arjan Draisma Date: Tue, 1 Oct 2024 15:11:38 +0200 Subject: [PATCH] fix yield statement --- big_scape/genbank/bgc_record.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/big_scape/genbank/bgc_record.py b/big_scape/genbank/bgc_record.py index 3a676e0b..9cf99981 100644 --- a/big_scape/genbank/bgc_record.py +++ b/big_scape/genbank/bgc_record.py @@ -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