Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

tpietzsch
Copy link
Collaborator

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 imglib/imglib2-cache#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...

This was broken before, such that only the volatile Source was being
used. Consequently, BDV movie recording etc didn't work properly.
@bogovicj bogovicj merged commit ec0b177 into saalfeldlab:master Dec 8, 2022
@bogovicj
Copy link
Contributor

bogovicj commented Dec 8, 2022

Thanks @tpietzsch ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants