Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyrivet/hilbert_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down Expand Up @@ -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))
return betti_to_splitmat(left).distance(betti_to_splitmat(right))