Skip to content

Commit 63830fb

Browse files
committed
adding an assert
1 parent 38024ee commit 63830fb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/predtiler/tile_stitcher.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ def stitch_predictions(predictions:np.ndarray, manager):
1515
mng = manager
1616
shape = list(mng.data_shape)
1717
shape.append(predictions.shape[1])
18-
print(shape)
19-
18+
assert mng.patch_shape[-2:] == predictions.shape[-2:], 'Patch shape and predictions shape must match. Please set the patch shape correctly'
2019
output = np.zeros(shape, dtype=predictions.dtype)
2120
for dset_idx in range(predictions.shape[0]):
2221
# grid start, grid end

0 commit comments

Comments
 (0)