-
Notifications
You must be signed in to change notification settings - Fork 21
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
[feature request] split out functionality of the fetch
function
#175
Comments
Thanks for the suggestion @ha0ye! This sounds like a good idea, but I'd like to understand the use case just a little more to help guide development. Is the idea that in some cases you might want to download the data once, but load it repeatedly? If so do you envision wanting to handle that logic yourself (e.g.,):
Or would you prefer to have |
Yep, that’s the use case I had in mind. I think I lean towards expecting a user to handle the logic of installing and loading. You could modify fetch to have additional logic to check downloads, but with the name “fetch”, my default expectation is that it would always be downloading again. |
Thanks! One follow up. What do you think about a third alternative: including this behavior in
With the default for |
Sure, I think that could work! |
Thanks! |
The
fetch()
function seems to do 2 things:There are existing functions to separately download raw and formatted datasets, but no functions to handle data importing. It seems reasonable to also expose the importing functionality to users and then refactor
fetch
to be a combined 2-step function that goes through the download and import steps using a temporary directory.The text was updated successfully, but these errors were encountered: