Skip to content

Commit b5fcffb

Browse files
committed
MAINT: in1d was deprecated in numpy switch to isin
1 parent 0293f5f commit b5fcffb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎biom/table.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4238,7 +4238,7 @@ def _get_ids(source_ids, desired_ids):
42384238
else:
42394239
desired_ids = np.asarray(desired_ids)
42404240
# Get the index of the source ids to include
4241-
idx = np.in1d(source_ids, desired_ids)
4241+
idx = np.isin(source_ids, desired_ids)
42424242
# Retrieve only the ids that we are interested on
42434243
ids = source_ids[idx]
42444244
# Check that all desired ids have been found on source ids

0 commit comments

Comments
 (0)