webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

preserve volume annotation largestSegmentId and elementClass across re-upload

Open fm3 opened this issue 2 years ago • 2 comments

When downloading and re-uploading a volume annotation, the largestSegmentId and elementClass properties are lost. In case of an existing fallback layer, the latter is harmless, as the elementClass of the fallback layer is always used. But if there is no fallback layer, the elementClass is set to uint32 in upload, which may not be large enough.

fm3 avatar Aug 10 '22 12:08 fm3

In case of an existing fallback layer, the latter is harmless, as the elementClass of the fallback layer is always used. But if there is no fallback layer, the elementClass is set to uint32 in upload, which may not be large enough.

This only becomes relevant when we expose a different dtype than 32-bit for new volume layers (without fallback), right?

philippotto avatar Aug 10 '22 12:08 philippotto

for elementClass, yes, but the largestSegmentId would already be nice, I think

fm3 avatar Aug 10 '22 12:08 fm3