Skip to content

Commit

Permalink
ensure_wkw with compression (#109)
Browse files Browse the repository at this point in the history
* ensure_wkw with compression
* update reference data
  • Loading branch information
normanrz authored and bulldozer-boy[bot] committed Aug 2, 2019
1 parent a7c1498 commit 62a8fd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file modified testdata/tiff_mag_2_reference.tar.gz
Binary file not shown.
9 changes: 8 additions & 1 deletion wkcuber/downsampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ def downsample(
)
)

ensure_wkw(target_wkw_info)
with open_wkw(source_wkw_info) as source_wkw:
num_channels = source_wkw.header.num_channels
header_block_type = (
wkw.Header.BLOCK_TYPE_LZ4HC if compress else wkw.Header.BLOCK_TYPE_RAW
)
ensure_wkw(
target_wkw_info, block_type=header_block_type, num_channels=num_channels
)

with get_executor_for_args(args) as executor:
futures = []
Expand Down

0 comments on commit 62a8fd5

Please sign in to comment.