Skip to content

Commit 1261d46

Browse files
committed
Use float64 in astype to ensure working on 32-bit platforms
1 parent 3c89f44 commit 1261d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/skan/csr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def __init__(
525525
if np.issubdtype(skeleton_image.dtype, np.floating):
526526
self.pixel_values = skeleton_image[coords]
527527
elif np.issubdtype(skeleton_image.dtype, np.integer):
528-
self.pixel_values = skeleton_image.astype(float)[coords]
528+
self.pixel_values = skeleton_image.astype(np.float64)[coords]
529529
else:
530530
self.pixel_values = None
531531
self.graph = graph

0 commit comments

Comments
 (0)