From e35502bcd6e57c7c99253370b9c868f79defd6a3 Mon Sep 17 00:00:00 2001 From: blankkirigaya Date: Thu, 2 Apr 2026 15:18:23 +0530 Subject: [PATCH 1/3] fixed a underlying bug --- malariagen_data/anoph/snp_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malariagen_data/anoph/snp_data.py b/malariagen_data/anoph/snp_data.py index fa2111fa1..0c46cc49b 100644 --- a/malariagen_data/anoph/snp_data.py +++ b/malariagen_data/anoph/snp_data.py @@ -923,7 +923,7 @@ def _locate_site_class( ) | ((seq_cls == SEQ_CLS_DOWNSTREAM) & (seq_relpos_start > 10_000)) else: - raise NotImplementedError(site_class) from exc + raise NotImplementedError(site_class) # N.B., site annotations data are provided for every position in the genome. We need to # therefore subset to SNP positions. From a71b7ffff8a403e166877e54be181513ec14be70 Mon Sep 17 00:00:00 2001 From: blankkirigaya Date: Thu, 2 Apr 2026 15:29:56 +0530 Subject: [PATCH 2/3] fiX --- malariagen_data/anoph/snp_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malariagen_data/anoph/snp_data.py b/malariagen_data/anoph/snp_data.py index 0c46cc49b..d9afe5423 100644 --- a/malariagen_data/anoph/snp_data.py +++ b/malariagen_data/anoph/snp_data.py @@ -923,7 +923,7 @@ def _locate_site_class( ) | ((seq_cls == SEQ_CLS_DOWNSTREAM) & (seq_relpos_start > 10_000)) else: - raise NotImplementedError(site_class) + raise NotImplementedError(site_class) from None # N.B., site annotations data are provided for every position in the genome. We need to # therefore subset to SNP positions. From 832cbac2a8b81542f45ed0d107c49e3aa46596bb Mon Sep 17 00:00:00 2001 From: blankkirigaya Date: Thu, 2 Apr 2026 20:39:51 +0530 Subject: [PATCH 3/3] Fix pre-commit lint issues --- malariagen_data/anoph/snp_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malariagen_data/anoph/snp_data.py b/malariagen_data/anoph/snp_data.py index d9afe5423..3741088cb 100644 --- a/malariagen_data/anoph/snp_data.py +++ b/malariagen_data/anoph/snp_data.py @@ -799,7 +799,7 @@ def _locate_site_class( try: loc_ann = self._cache_locate_site_class[cache_key] - except KeyError as exc: + except KeyError: # Access site annotations data. ds_ann = self._site_annotations_raw( contig=region.contig,