Skip to content

Commit 64754f7

Browse files
committed
fixex buig in export
1 parent eeb40c7 commit 64754f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wkcuber/export_wkw_as_tiff.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ def export_tiff_slice(
137137
batch_size,
138138
downsample,
139139
) = export_args
140+
tiff_bbox = tiff_bbox.copy()
140141
number_of_slices = min(tiff_bbox["size"][2] - batch_number * batch_size, batch_size)
141142
tiff_bbox["size"] = [tiff_bbox["size"][0], tiff_bbox["size"][1], number_of_slices]
143+
tiff_bbox["topleft"] = [tiff_bbox["topleft"][0], tiff_bbox["topleft"][1], tiff_bbox["topleft"][2] + batch_number * batch_size]
142144

143145
with wkw.Dataset.open(dataset_path) as dataset:
144146
if tiling_size is None:

0 commit comments

Comments
 (0)