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

Added set_cache_dir + refactoring to use pathlib.Path #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

falcaopetri
Copy link
Contributor

  • We can now call trajminer.datasets.set_cache_dir to use a persistent cache directory (or still fall back to using a temporary folder).
  • trajminer.datasets.tools.py was refactored to use pathlib.Path.
  • Setting trajminer.load_*'s cache=True also caches the unzipped file¹.

¹ If desired, we can implement cache such that:

  • cache=False: no cache,
  • cache='compressed_only': cache download_file,
  • cache=True: cache download_file and extract_tar

(or something similar, depending on the expected defaults)

@lucaspetry lucaspetry added the enhancement New feature or request label Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

2 participants