From bc6cf833cc115070013170406271fdc5035c845c Mon Sep 17 00:00:00 2001 From: Joshua Minien <132277561+aerojam95@users.noreply.github.com> Date: Sat, 13 Jul 2024 15:12:15 +0100 Subject: [PATCH] datatype-update: np.float datatype depricated updated it to np.float64 in hilbert_distance.py --- pyrivet/hilbert_distance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrivet/hilbert_distance.py b/pyrivet/hilbert_distance.py index 88b6198..89e92f2 100644 --- a/pyrivet/hilbert_distance.py +++ b/pyrivet/hilbert_distance.py @@ -147,7 +147,7 @@ def make_compatible(self, other): left = left.add_col(dims[1].lower_bound) for bound in dims[1].upper_bounds: left = left.add_col(bound) - mat = left.mat.astype(np.float) + mat = left.mat.astype(np.float64) return SplitMat(mat, dims) def __add__(self, other): @@ -163,7 +163,7 @@ def __add__(self, other): for bound in dims[1].upper_bounds: left = left.add_col(bound) right = right.add_col(bound) - mat = left.mat.astype(np.float) + right.mat.astype(np.float) + mat = left.mat.astype(np.float64) + right.mat.astype(np.float64) return SplitMat(mat, dims) def __neg__(self): @@ -235,4 +235,4 @@ def betti_to_splitmat(betti: rivet.MultiBetti): def distance(left: rivet.MultiBetti, right: rivet.MultiBetti): - return betti_to_splitmat(left).distance(betti_to_splitmat(right)) \ No newline at end of file + return betti_to_splitmat(left).distance(betti_to_splitmat(right))