home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 626083981

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
626083981 MDExOlB1bGxSZXF1ZXN0NDI0MTUwNjA0 4102 cache rasterio example files 14808389 closed 0     17 2020-05-27T22:43:04Z 2021-03-24T17:58:48Z 2021-03-24T17:56:49Z MEMBER   0 pydata/xarray/pulls/4102

To make building the documentation a bit faster (by 5-10 minutes for me), this adds a xr.tutorial.open_rasterio function with a signature and behavior that is almost identical to tutorial.open_dataset (when we replace the open_* functions with open_dataset(..., format="...") we should do that for the tutorial functions, too).

It uses requests.get instead of urllib.request.urlretrieve so that would be a new dependency. I'm not sure if that's an issue since it's installed in the bare-minimum CI's environment.

The tutorial.open_dataset code could be rewritten to use the same structure but I wanted to get feedback on open_rasterio first.

Edit: I also changed the default cache directory to ~/.cache/xarray_tutorial_data with a fallback to the old default if ~/.cache does not exist

  • [x] Closes #3986
  • [x] Tests added (but that's just a comparison between cached and uncached)
  • [x] Passes isort -rc . && black . && mypy . && flake8
  • [ ] Fully documented, including whats-new.rst for all changes and api.rst for new API
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4102/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 17 rows from issue in issue_comments
Powered by Datasette · Queries took 79.091ms · About: xarray-datasette