Skip to content

Commit 190c5e1

Browse files
Update parcels/spatialhash.py
Co-authored-by: Erik van Sebille <[email protected]>
1 parent e604f6f commit 190c5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/spatialhash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,5 +408,5 @@ def _encode_morton3d(x, y, z, xmin, xmax, ymin, ymax, zmin, zmax):
408408
# Cast to a wide type before shifting/OR to be safe when arrays are used.
409409
code = (dz3 << 2) | (dy3 << 1) | dx3
410410

411-
# If you want a compact type, it fits in 30 bits; uint32 is enough.
411+
# Since our compact type fits in 30 bits, uint32 is enough.
412412
return code.astype(np.uint32)

0 commit comments

Comments
 (0)