Skip to content

Commit 4969c51

Browse files
authored
Update tifffile to 2024.8.30 (#1190)
* Update tifffile and adapt example to breaking change. * Update changelog.
1 parent 4b2271f commit 4969c51

File tree

4 files changed

+181
-177
lines changed

4 files changed

+181
-177
lines changed

webknossos/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
1717
### Added
1818

1919
### Changed
20+
- Updated tifffile dependency to v2024.8.30. [#1190](https://github.com/scalableminds/webknossos-libs/pull/1190)
2021

2122
### Fixed
2223

webknossos/examples/load_annotation_from_file.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ def load_annotation(annotation_file: Path) -> None:
1919
mag_view = segmentation_layer.get_finest_mag()
2020
segments = mag_view.read(absolute_bounding_box=BOUNDING_BOX)
2121

22+
# Drop channel dimension as it has depth 1
23+
segments = segments[0]
24+
2225
# Write segmentation IDs to an OME Tiff file
2326
imwrite(
2427
"segmentation.ome.tiff",
2528
segments.T, # note, the tiff lib use different channel order
2629
ome=True,
2730
metadata={
28-
"axes": "ZYXC",
31+
"axes": "ZYX",
2932
},
3033
)
3134

0 commit comments

Comments
 (0)