From 2359ddb49fafc66c961d9c94d3ecc66aa44bc75d Mon Sep 17 00:00:00 2001 From: Nathan Keim Date: Wed, 10 Jul 2024 15:05:55 -0400 Subject: [PATCH 1/2] MNT: numpy v2.0 compatibility --- trackpy/linking/subnetlinker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trackpy/linking/subnetlinker.py b/trackpy/linking/subnetlinker.py index a43b428b..b7b1d3be 100644 --- a/trackpy/linking/subnetlinker.py +++ b/trackpy/linking/subnetlinker.py @@ -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 From a65a2a643d327796332eddaefdaa06f5c33f2942 Mon Sep 17 00:00:00 2001 From: Nathan Keim Date: Wed, 10 Jul 2024 15:32:15 -0400 Subject: [PATCH 2/2] DOC: Release notes for numpy2 --- doc/releases/v0.6.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/releases/v0.6.txt b/doc/releases/v0.6.txt index d751c468..7fedbe88 100644 --- a/doc/releases/v0.6.txt +++ b/doc/releases/v0.6.txt @@ -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 ------