Skip to content

Commit b758f0f

Browse files
authored
Merge pull request #637 from malariagen/GH609_replace_in1d
Replace np.in1d with np.isin in g123.py
2 parents dc16a6b + 05372d4 commit b758f0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anoph/g123.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _load_data_for_g123(
8080
inline_array=True,
8181
chunks="native",
8282
).compute()
83-
hap_site_mask = np.in1d(pos, haplotype_pos, assume_unique=True)
83+
hap_site_mask = np.isin(pos, haplotype_pos, assume_unique=True)
8484
pos = pos[hap_site_mask]
8585
gt = gt.compress(hap_site_mask, axis=0)
8686

0 commit comments

Comments
 (0)