Skip to content

Add function to retrieve example datasets #924

Open
@kandersolar

Description

@kandersolar

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:

  • No need to monkey around with filepaths, especially ones that aren't really meant to be public
  • Associating files with keys means we can move and rename test data files without it being a breaking change
  • Simplifies example code

Cons:

  • The data files are in several formats (csv, json, nc, h5 etc), so this function would either have to know the appropriate reading method for each file (complicated) or just return a file handle and let the user parse the contents (less useful).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions