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

Use pooch.os_cache and pkg_resources in datasets #140

Merged
merged 1 commit into from
Jan 21, 2020
Merged

Conversation

leouieda
Copy link
Member

With Pooch 0.7.0, the recommended way of loading the registry file is
with pkg_resources (see fatiando/pooch#120). It's also better to use
the default cache location so users can more easily clean up unused
files. Because this is system specific, add the
harmonica.datasets.locate function to return the cache folder
location.

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to the docstring, gallery, and/or tutorials.

With Pooch 0.7.0, the recommended way of loading the registry file is
with `pkg_resources` (see fatiando/pooch#120). It's also better to use
the default cache location so users can more easily clean up unused
files. Because this is system specific, add the
`harmonica.datasets.locate` function to return the cache folder
location.
@leouieda
Copy link
Member Author

Same PR as in Verde. Feel free to merge when/if tests pass :)

@santisoler santisoler merged commit 6d5d049 into master Jan 21, 2020
@santisoler santisoler deleted the pooch_cache branch January 21, 2020 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants