saalfeldlab / n5-viewer

BigDataViewer-based tool for visualizing multichannel multiscale N5 datasets.
GNU General Public License v3.0
18 stars 11 forks source link

Fix creation of volatile/non-volatile N5Source pair #33

Closed tpietzsch closed 1 year ago

tpietzsch commented 2 years ago

Construction of volatile versions of sources was broken. Only the volatile Source was being used, and consequently BDV movie recording etc didn't work properly.

There is still a TODO left in the code about fixing the CacheHints (which determine how blocks are enqueued). However, to address that, I would wait for https://github.com/imglib/imglib2-cache/issues/18. Then it should be easily fixed by replacing the current code with the commented bit. For now, the CacheHints are set up as before, which is ok, but not ideal.

The unnecessary class N5VolatileSource has been removed, as well as the N5Source.asVolatile() methods which created N5VolatileSource. So, this PR technically breaks API, but I doubt that this was used anywhere...

bogovicj commented 1 year ago

Thanks @tpietzsch :heart: