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

function to save and restore snapshots of data #67

Open
schlegelp opened this issue Jul 13, 2018 · 2 comments
Open

function to save and restore snapshots of data #67

schlegelp opened this issue Jul 13, 2018 · 2 comments

Comments

@schlegelp
Copy link
Collaborator

No description provided.

@schlegelp
Copy link
Collaborator Author

schlegelp commented Jul 24, 2018

Related: add 'snapshot mode' to CatmaidInstance. In this mode, a remote instance would store all queried urls and the responses (e.g. a pickle file). A new CatmaidInstance would then accept that file as parameter and use it as primary source for URLs stored in that file.

See here for example of memoization. Could use cache=True parameter and a .save_cache & .restore_cache method.

@schlegelp
Copy link
Collaborator Author

schlegelp commented Jul 29, 2018

Ended up writing my own implementation for memoization using OrdereredDict. First version committed in 7ca2c5b. Will keep this issue open to track bugs and feature ideas.

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

No branches or pull requests

1 participant