Skip to content

Commit

Permalink
Merge pull request #770 from nkeim/numpy2
Browse files Browse the repository at this point in the history
MNT: numpy v2.0 compatibility
  • Loading branch information
nkeim authored Jul 10, 2024
2 parents 09ad08f + a65a2a6 commit 92b8f9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions doc/releases/v0.6.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
v0.6.4
------

trackpy v0.6.4 is a minor compatibility update for numpy v2.0

Dependencies
~~~~~~~~~~~~
- Adds support for numpy 2.0 (@nkeim, #770). Note that as of this writing,
pytables (an optional dependency for trackpy) does not yet support
numpy 2.0 (see https://github.com/PyTables/PyTables/issues/1172 and
#768).


v0.6.3
------

Expand Down
2 changes: 1 addition & 1 deletion trackpy/linking/subnetlinker.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, s_sn, dest_size, search_range, max_size=30):
self.max_links = min(self.MAX, dest_size)
self.best_pairs = None
self.cur_pairs = deque([])
self.best_sum = np.Inf
self.best_sum = np.inf
self.d_taken = set()
self.cur_sum = 0

Expand Down

0 comments on commit 92b8f9d

Please sign in to comment.