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

Random access or append only? #3

Open
go2scope opened this issue Mar 11, 2024 · 0 comments
Open

Random access or append only? #3

go2scope opened this issue Mar 11, 2024 · 0 comments

Comments

@go2scope
Copy link
Owner

Here is another topic. The API I proposed allows us to insert images in any order regardless of the specified order of dimensions.
This would be a "random access insert" paradigm. It was trivial to implement in the old micro-manager format because each image was a separate tiff. The acquisition order was irrelevant to the writer.

Some of (or all) of today's popular formats would have trouble with random access image inserts. To allow random coordinate inserts, the StorageDevice might be required to cache all data in memory. Or, to make the implementation more straightforward, the adapter would have to raise an exception if the image is not inserted in the correct order.

Do we need to create an "append only" API? In that case, we can only append images, and the order is implied, as the declared order of dimensions is at the opening of the dataset. This would be probably too limiting, but not sure...

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

No branches or pull requests

1 participant