Skip to content

Commit 487caca

Browse files
committed
Merge branch 'master' of github.com:scalableminds/webknossos-libs
2 parents 8438ad4 + 0e2b444 commit 487caca

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

cluster_tools/Changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/) `MAJOR.MIN
77
For upgrade instructions, please check the respective *Breaking Changes* sections.
88

99
## Unreleased
10-
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.4...HEAD)
10+
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.5...HEAD)
1111

1212
### Breaking Changes
1313

@@ -18,6 +18,10 @@ For upgrade instructions, please check the respective *Breaking Changes* section
1818
### Fixed
1919

2020

21+
## [2.3.5](https://github.com/scalableminds/webknossos-libs/releases/tag/v2.3.5) - 2025-05-13
22+
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.4...v2.3.5)
23+
24+
2125
## [2.3.4](https://github.com/scalableminds/webknossos-libs/releases/tag/v2.3.4) - 2025-05-12
2226
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.3...v2.3.4)
2327

docs/src/cli/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ webknossos --install-completion
4545
webknossos convert \
4646
--voxel-size 11.24,11.24,25 \
4747
--name great_dataset \
48+
--downsample \
4849
data/source data/target
4950

5051

webknossos/Changelog.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/) `MAJOR.MIN
1010
For upgrade instructions, please check the respective _Breaking Changes_ sections.
1111

1212
## Unreleased
13-
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.4...HEAD)
13+
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.5...HEAD)
1414

1515
### Breaking Changes
1616

@@ -21,6 +21,20 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
2121
### Fixed
2222

2323

24+
## [2.3.5](https://github.com/scalableminds/webknossos-libs/releases/tag/v2.3.5) - 2025-05-13
25+
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.4...v2.3.5)
26+
27+
### Added
28+
- Added `--downsample` flag to `webknossos convert` CLI command. [#1305](https://github.com/scalableminds/webknossos-libs/pull/1305)
29+
30+
### Changed
31+
- Uses compression by default for `webknossos convert` CLI command. [#1305](https://github.com/scalableminds/webknossos-libs/pull/1305)
32+
33+
### Fixed
34+
- Pinned `click<8.2.0` because of incompatibility with `typer`. [#1305](https://github.com/scalableminds/webknossos-libs/pull/1305)
35+
36+
37+
2438
## [2.3.4](https://github.com/scalableminds/webknossos-libs/releases/tag/v2.3.4) - 2025-05-12
2539
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v2.3.3...v2.3.4)
2640

webknossos/webknossos/cli/convert.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def main(
110110
] = None,
111111
compress: Annotated[
112112
bool, typer.Option(help="Enable compression of the target dataset.")
113+
] = True,
114+
downsample: Annotated[
115+
bool, typer.Option(help="Downsample the target dataset.")
113116
] = False,
114117
batch_size: Annotated[
115118
int | None,
@@ -159,7 +162,7 @@ def main(
159162
voxel_size_with_unit = VoxelSize(voxel_size, unit)
160163

161164
with get_executor_for_args(args=executor_args) as executor:
162-
Dataset.from_images(
165+
dataset = Dataset.from_images(
163166
source,
164167
target,
165168
name=name,
@@ -173,3 +176,6 @@ def main(
173176
batch_size=batch_size,
174177
layer_category=category.value if category else None,
175178
)
179+
if downsample:
180+
with get_executor_for_args(args=executor_args) as executor:
181+
dataset.downsample(executor=executor)

0 commit comments

Comments
 (0)