Skip to content

Commit 05372d4

Browse files
committed
Replace np.in1d with np.isin in g123.py
1 parent dc16a6b commit 05372d4

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)