Skip to content

Commit ff2e70a

Browse files
authored
Fix upsampling with constant z (#720)
* Fix upsampling with constant z * Update Changelog.md
1 parent be405b5 commit ff2e70a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webknossos/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ For upgrade instructions, please check the respective *Breaking Changes* section
1919
### Changed
2020

2121
### Fixed
22+
- Fixed upsampling with constant z in certain anisotropic cases. [#720](https://github.com/scalableminds/webknossos-libs/pull/720)
2223

2324

2425
## [0.9.23](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.9.23) - 2022-05-03

webknossos/webknossos/dataset/layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ def upsample(
924924
finest_mag_with_fixed_z = finest_mag.to_list()
925925
finest_mag_with_fixed_z[2] = from_mag.to_list()[2]
926926
finest_mag = Mag(finest_mag_with_fixed_z)
927-
voxel_size = self.dataset.voxel_size
927+
voxel_size = None
928928
else:
929929
raise AttributeError(
930930
f"Upsampling failed: {sampling_mode} is not a valid UpsamplingMode ({SamplingModes.ANISOTROPIC}, {SamplingModes.ISOTROPIC}, {SamplingModes.CONSTANT_Z})"

0 commit comments

Comments
 (0)