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))