You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user I am working with was iteratively creating NWB files and using NWB GUIDE > Neurosift to visualize the file. The NWB file is only ~75 MB. The user would modify the file but the changes were not reflected in NWB GUIDE > Neurosift. The file was indeed changed as confirmed by PyNWB. It turns out that Electron has a cache and something, probably the NWB file, is being cached and served when the file with the same path (but different create/modify date and size) is requested.
It looks like the structure of the NWB file is cached in the browser/Electron's IndexedDB in the neurosift-hdf5-cache database, so changes to the structure, e.g., renaming groups, adding columns to a table, changing attributes, will not be reflected unless the cache is cleared.
It seems that changing values of datasets is reflected, however.
Disabling the cache / deleting the storage data is especially important now that after #970, when serving files to Neurosift, different files might map to the same URL. For example, "http://127.0.0.1:4242//files/0:/processing" might be created when loading a file on the first run of NWB GUIDE. After GUIDE is closed and reopened and a new file is explored with Neurosift, "http://127.0.0.1:4242//files/0:/processing" should point to a new file, but the key/value pairs were cached, and so the incorrect values will be loaded. Indeed, I tested this and on the second load of File B, the hierarchy of file A from the first load was shown.
rly
linked a pull request
Mar 7, 2025
that will
close
this issue
Describe the issue
A user I am working with was iteratively creating NWB files and using NWB GUIDE > Neurosift to visualize the file. The NWB file is only ~75 MB. The user would modify the file but the changes were not reflected in NWB GUIDE > Neurosift. The file was indeed changed as confirmed by PyNWB. It turns out that Electron has a cache and something, probably the NWB file, is being cached and served when the file with the same path (but different create/modify date and size) is requested.
See https://stackoverflow.com/a/44675132/20177
Deleting
/Users/<user>/Library/Application Support/NWB GUIDE/Cache
was insufficient, but deleting/Users/<user>/Library/Application Support/NWB GUIDE/
worked.It might be that if the file is much larger, it would not be cached.
GUIDE should clear the Electron cache (or not use the cache) when serving NWB files to Neurosift and other services like DANDI Upload.
Steps to Reproduce
^
Operating System
Mac
GUIDE Version
1.0.4
Code of Conduct
Yes
Did you confirm this issue was not already reported?
Yes
The text was updated successfully, but these errors were encountered: