You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the parameter allow_compressed_write by always allowing it (#356)
* Remove the parameter allow_compressed_write by always allowing it
* update changelog
* lint and format code
* move comment to right place
* update doc strings
Co-authored-by: Jonathan Striebel <[email protected]>
- The parameter allow_compressed_write from View.write() is now removed. Writing to compressed magnifications is now always allowed. If the user decides to write unaligned data, a warning about a possible performance impact is displayed once. [#356](https://github.com/scalableminds/webknossos-cuber/pull/356)
13
14
14
15
### Added
15
16
- Added functions to `wkcuber.api.dataset.Dataset` and `wkcuber.api.layer.Layer` to set and get the view configuration. [#344](https://github.com/scalableminds/webknossos-cuber/pull/344)
f"Writing compressed data failed. The compressed file is not fully inside the bounding box of the view (offset={self.global_offset}, size={self.size})."
449
-
) frome
438
+
439
+
# We want to read the data at the absolute offset.
440
+
# The absolute offset might be outside of the current view.
441
+
# That is the case if the data is compressed but the view does not include the whole file on disk.
442
+
# In this case we avoid checking the bounds because the aligned_offset and aligned_shape are calculated internally.
443
+
warnings.warn(
444
+
"Warning: write() was called on a compressed mag without block alignment. Performance will be degraded as the data has to be padded first.",
0 commit comments