Skip to content

Commit

Permalink
adding an assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ashesh-0 committed Jan 15, 2025
1 parent 38024ee commit 63830fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/predtiler/tile_stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def stitch_predictions(predictions:np.ndarray, manager):
mng = manager
shape = list(mng.data_shape)
shape.append(predictions.shape[1])
print(shape)

assert mng.patch_shape[-2:] == predictions.shape[-2:], 'Patch shape and predictions shape must match. Please set the patch shape correctly'
output = np.zeros(shape, dtype=predictions.dtype)
for dset_idx in range(predictions.shape[0]):
# grid start, grid end
Expand Down

0 comments on commit 63830fb

Please sign in to comment.