from dascore.utils.downloader import resolve_example_uri
path = resolve_example_uri("examples://terra15_das_1_trimmed.hdf5")
path.exists()True
| function of dascore.utils.downloader | source |
resolve_example_uri(
resource: None ,
)-> ’_T | Path’
Resolve an examples://{name} URI to a local path.
| Parameter | Description |
|---|---|
| resource |
Any resource. Anything which is not an example URI is returned unchanged so call sites need no branch of their own. |
A path to the downloaded file, or the unmodified resource.
UnknownExampleError if the name is not a file in the data registry.