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
The current cache implementation automatically updates data which is a sane default behavior.
In some case, it could make sense to instead use a cache that doesn't update data and keep them forever, making a study reproducible.
An API for such cache might look like this:
fromspeasy.reproducibilityimportIndex# aliasing with spz should make usage transparent spz=Index("/some/path")
# here the expected behavior, is, take from index if present or request data and add to indexv=spz.get_data(...)
...
# users should be able to export their cachespz.export_data("/some/path/archive.tgz")
...
# users should be able to import cache spz.import_data("/some/path/archive.tgz")
...
# at some point users should also be able to update data from cachespz.update_all_data()
# orv=spz.get_data(..., refresh=True)
The text was updated successfully, but these errors were encountered:
The current cache implementation automatically updates data which is a sane default behavior.
In some case, it could make sense to instead use a cache that doesn't update data and keep them forever, making a study reproducible.
An API for such cache might look like this:
The text was updated successfully, but these errors were encountered: