Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Aug 21, 2019
1 parent 64754f7 commit ffdd54a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wkcuber/export_wkw_as_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ def export_tiff_slice(
tiff_bbox = tiff_bbox.copy()
number_of_slices = min(tiff_bbox["size"][2] - batch_number * batch_size, batch_size)
tiff_bbox["size"] = [tiff_bbox["size"][0], tiff_bbox["size"][1], number_of_slices]
tiff_bbox["topleft"] = [tiff_bbox["topleft"][0], tiff_bbox["topleft"][1], tiff_bbox["topleft"][2] + batch_number * batch_size]
tiff_bbox["topleft"] = [
tiff_bbox["topleft"][0],
tiff_bbox["topleft"][1],
tiff_bbox["topleft"][2] + batch_number * batch_size,
]

with wkw.Dataset.open(dataset_path) as dataset:
if tiling_size is None:
Expand Down

0 comments on commit ffdd54a

Please sign in to comment.