ContextLab / hypertools

A Python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1.81k stars 161 forks source link

Reset data cache on install #194

Closed andrewheusser closed 1 year ago

andrewheusser commented 6 years ago

Problems can arise if the user has an outdated dataset cached on their computer. This could be resolved if we reset that data cache upon install/reinstall.

paxtonfitzpatrick commented 1 year ago

Since not all hypertools updates involve changes to the datasets, they don't necessarily need to be removed and re-downloaded every time. However, as of v0.8.0, hypertools now throws a HypertoolsIOError suggesting deleting the dataset cache when loading an example dataset fails (because it was created using an an older hypertools version).

https://github.com/ContextLab/hypertools/blob/564c1d43da447da68ce3d76f51306725291630e0/hypertools/tools/load.py#L169-L187