Skip to content

Commit d78e23e

Browse files
committed
Fix ihs_gwss using wrong cache key "roh" instead of self._ihs_gwss_cache_name
Fixes #886. The ihs_gwss method was using a hardcoded cache name "roh" (belonging to runs-of-homozygosity) instead of the class-defined _ihs_gwss_cache_name property, risking silent cache collisions and incorrect results being returned from the cache.
1 parent be2fb95 commit d78e23e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anopheles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ def ihs_gwss(
13651365
) -> Tuple[np.ndarray, np.ndarray]:
13661366
# change this name if you ever change the behaviour of this function, to
13671367
# invalidate any previously cached data
1368-
name = "roh"
1368+
name = self._ihs_gwss_cache_name
13691369

13701370
params = dict(
13711371
contig=contig,

0 commit comments

Comments
 (0)