Skip to content

Commit

Permalink
Ensure the hash value fits into an unsigned 64-bit integer, avoiding …
Browse files Browse the repository at this point in the history
…the out-of-bounds casting issue introduced in NumPy 2.0.0
  • Loading branch information
brendancol committed Sep 13, 2024
1 parent 555706c commit 2d65b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xrspatial/gpu_rtx/mesh_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def create_triangulation(raster, optix):
datahash = np.uint64(hash(str(raster.data.get())))
datahash = np.uint64(hash(str(raster.data.get())) % (1 << 64))
optixhash = np.uint64(optix.getHash())

# Calculate a scale factor for the height that maintains the ratio
Expand Down

0 comments on commit 2d65b8d

Please sign in to comment.