Skip to content

Commit f49ed49

Browse files
committed
Normalize site_mask cache key in g123_gwss for consistency
1 parent d316582 commit f49ed49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

malariagen_data/anoph/g123.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def g123_gwss(
170170
) -> Tuple[np.ndarray, np.ndarray]:
171171
# Change this name if you ever change the behaviour of this function, to
172172
# invalidate any previously cached data.
173-
name = "g123_gwss_v1"
173+
name = "g123_gwss_v2"
174174

175175
valid_sites = self.phasing_analysis_ids + ("all", "segregating")
176176
if sites not in valid_sites:
@@ -181,7 +181,7 @@ def g123_gwss(
181181
params = dict(
182182
contig=contig,
183183
sites=sites,
184-
site_mask=site_mask,
184+
site_mask=self._prep_optional_site_mask_param(site_mask=site_mask),
185185
window_size=window_size,
186186
sample_sets=self._prep_sample_sets_param(sample_sets=sample_sets),
187187
# N.B., do not be tempted to convert this sample query into integer

0 commit comments

Comments
 (0)