Skip to content

Commit b8ece3d

Browse files
committed
Fix: ensure coordinates are converted to float for consistent processing (in calc_resultshape)
1 parent 16287f4 commit b8ece3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cdl/computation/image/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,7 @@ def calc_resultshape(
14241424
)
14251425

14261426
if coords.size:
1427+
coords = np.array(coords, dtype=float)
14271428
if coords.shape[1] % 2 == 0:
14281429
# Coordinates are in the form [x0, y0, x1, y1, ...]
14291430
colx, coly = slice(None, None, 2), slice(1, None, 2)

0 commit comments

Comments
 (0)