File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ def load_tile(tile):
219219 inp = input_ [tile ]
220220 # whether to pad on the right or left of the dim for the spatial dims
221221 # + placeholders for batch and axis dimension, where we don't pad
222- pad_right = [None , None ] + [ tile [ax ].start == 0 for ax in input_axes if ax in "xyz" ]
222+ pad_right = [tile [ax ].start == 0 if ax in "xyz" else None for ax in input_axes ]
223223 return inp , pad_right
224224
225225 # we need to use padded prediction for the individual tiles in case the
@@ -382,6 +382,8 @@ def check_tiling(tiling):
382382 # from shape.min and shape.step
383383 shape = shape .min
384384 halo = output_spec .halo
385+ if halo is None :
386+ raise ValueError ("Model does not provide a valid halo to use for tiling with default parameters" )
385387 tiling = {
386388 "halo" : {ax : ha for ax , ha in zip (axes , halo ) if ax in "xyz" },
387389 "tile" : {ax : sh for ax , sh in zip (axes , shape ) if ax in "xyz" },
You can’t perform that action at this time.
0 commit comments