Skip to content

Commit

Permalink
Use float64 in astype to ensure working on 32-bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Dec 13, 2024
1 parent 3c89f44 commit 1261d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skan/csr.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def __init__(
if np.issubdtype(skeleton_image.dtype, np.floating):
self.pixel_values = skeleton_image[coords]
elif np.issubdtype(skeleton_image.dtype, np.integer):
self.pixel_values = skeleton_image.astype(float)[coords]
self.pixel_values = skeleton_image.astype(np.float64)[coords]
else:
self.pixel_values = None
self.graph = graph
Expand Down

0 comments on commit 1261d46

Please sign in to comment.