-
Notifications
You must be signed in to change notification settings - Fork 998
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
Add function to retrieve example datasets #924
Comments
+1 to having the function. I think a useful scope is to return the full path to the file. Reading file content and providing output in various formats seems like a large bite to chew. |
Any ideas for what the function should be named if it returns the file path? I'm having trouble coming up with a verb that doesn't seem misleading. Maybe just
|
To me this a "Pro" for having a dedicated data reader, to make it easier for users, if it's a PITA for us, it will be a blocker for them I think |
I would be happy if this pvlib-python/docs/examples/plot_greensboro_kimber_soiling.py Lines 39 to 43 in c9929e8
looked like # get full path to the data file
file_path = dataset('greensboro-tmy')
# parse TMY3 data
greensboro, _ = read_tmy3(file_path, coerce_year=1990) I don't think the broader scope is feasible. To be clear, this is just something for the tests/examples - not for anything else. metpy has a |
I just stumbled across some functions in pkg_resources that might be relevant to this issue: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#resource-extraction |
I just stumbled upon this issue looking for ideas for GSoC. |
It would be nice to have a clean way for gallery examples to get access to the test data files. See #860 (comment)
For a function like
load_dataset('greensboro-tmy')
:Pros:
Cons:
The text was updated successfully, but these errors were encountered: