-
Notifications
You must be signed in to change notification settings - Fork 17
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
Saving and reloading images directly on sdata within napari #310
Comments
Thanks for the code example. I opened an issue to track the public API for refreshing the elements list widget: #312. |
While the napari-spatialdata GUI is not notified about changes to the elements list and does not refresh the widget, a similar problem also occurs with SpatialData itself. The in-memory datastructure of SpatialData does not observe external changes on disk, and thus becomes outdated. In this Napari use case, napari-spatialdata holds a SpatialData datastructure in memory in the layer's In contrast to that, spatial elements that are dask arrays (an image itself) can be backed on disk and reflect changes on disk when the next read happens, since their image data is not fully stored on disk. In Napari you may have to zoom in/out to refresh the loaded chunks in the view. A similar use case is when doing parallel processing on elements of the same SpatialData store. A process sees the dictionary (and contained elements) as it was initially, but doesn't see changes added by other process that finished earlier. This becomes a problem when the process writes changes to disk that overwrite changes from other processes. Typically, elements are separate and can be written without conflict, but metadata Possible solutions:
|
Thanks for the comment @aeisenbarth. From what I understand here refreshing the Meanwhile a quick answer. |
Hello,
Following the agenda from the 2024/09/05 SpatialData community meeting, below is a code example to reproduce the process of:
The text was updated successfully, but these errors were encountered: