Skip to content

Commit 1a27e5c

Browse files
authored
Merge pull request #4 from eacharles/eac/fix_in1d
fix: replace deprecated numpy.in1d with numpy.isin
2 parents 80346fc + 4a083f2 commit 1a27e5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fast3tree/fof.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def find_friends_of_friends(
2020
else:
2121
group_ids[idx] = i
2222
if len(group_ids_this):
23-
group_ids[np.in1d(group_ids, group_ids_this)] = i
23+
group_ids[np.isin(group_ids, group_ids_this)] = i
2424
if reassign_group_indices:
2525
group_ids = np.unique(group_ids, return_inverse=True)[1]
2626
return group_ids

fast3tree/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.1"
1+
__version__ = "0.4.2"

0 commit comments

Comments
 (0)