pymaid icon indicating copy to clipboard operation
pymaid copied to clipboard

function to save and restore snapshots of data

Open schlegelp opened this issue 7 years ago • 2 comments

schlegelp avatar Jul 13 '18 17:07 schlegelp

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 avatar Jul 24 '18 22:07 schlegelp

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

schlegelp avatar Jul 29 '18 12:07 schlegelp