diff --git a/wkcuber/Changelog.md b/wkcuber/Changelog.md index 415c29533..c256b83fe 100644 --- a/wkcuber/Changelog.md +++ b/wkcuber/Changelog.md @@ -16,6 +16,7 @@ For upgrade instructions, please check the respective *Breaking Changes* section ### Changed ### Fixed +- Fixed a bug where converting coarse-mag Knossos data would crash with an assertion error. [#857](https://github.com/scalableminds/webknossos-libs/pull/857) ## [0.11.2](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.11.2) - 2023-01-18 diff --git a/wkcuber/wkcuber/convert_knossos.py b/wkcuber/wkcuber/convert_knossos.py index 01ccf423c..ba00e8a3a 100644 --- a/wkcuber/wkcuber/convert_knossos.py +++ b/wkcuber/wkcuber/convert_knossos.py @@ -98,7 +98,7 @@ def convert_knossos( dtype: str, voxel_size: Tuple[float, float, float], data_format: DataFormat, - chunk_shape: Vec3Int, + chunk_shape: Vec3Int, # in target-mag chunks_per_shard: Vec3Int, mag: int = 1, args: Optional[Namespace] = None, @@ -134,7 +134,7 @@ def convert_knossos( with get_executor_for_args(args) as executor: target_mag.for_each_chunk( partial(convert_cube_job, source_knossos_info), - chunk_shape=chunk_shape * chunks_per_shard, + chunk_shape=chunk_shape * mag * chunks_per_shard, executor=executor, progress_desc=f"Converting knossos layer {layer_name}", )