home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 889162918

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
889162918 MDU6SXNzdWU4ODkxNjI5MTg= 5291 ds = xr.tutorial.load_dataset("air_temperature") with 0.18 needs engine argument 14808389 closed 0     15 2021-05-11T23:42:58Z 2021-05-18T21:23:00Z 2021-05-18T21:23:00Z MEMBER      

From xarray-contrib/xarray-tutorial#43 by @scottyhq:

Many notebooks out there start with the line ds = xr.tutorial.load_dataset("air_temperature"). That now gives an error traceback with xarray>=0.18:

pytb Traceback (most recent call last): File "/Users/scott/GitHub/zarrdata/./create_zarr.py", line 6, in <module> ds = xr.tutorial.load_dataset("air_temperature") File "/Users/scott/miniconda3/envs/zarrdata/lib/python3.9/site-packages/xarray/tutorial.py", line 179, in load_dataset with open_dataset(*args, **kwargs) as ds: File "/Users/scott/miniconda3/envs/zarrdata/lib/python3.9/site-packages/xarray/tutorial.py", line 100, in open_dataset ds = _open_dataset(filepath, **kws) File "/Users/scott/miniconda3/envs/zarrdata/lib/python3.9/site-packages/xarray/backends/api.py", line 485, in open_dataset engine = plugins.guess_engine(filename_or_obj) File "/Users/scott/miniconda3/envs/zarrdata/lib/python3.9/site-packages/xarray/backends/plugins.py", line 112, in guess_engine raise ValueError("cannot guess the engine, try passing one explicitly") ValueError: cannot guess the engine, try passing one explicitly

It's an easy fix though, just add ds = xr.tutorial.load_dataset("air_temperature", engine="netcdf4"), new users might be thrown by that though. Also a note that unless the netcdf4 library is explicitly put into the software environment, even adding the engine=netcdf4 can result in an error: "ValueError: unrecognized engine netcdf4 must be one of: ['store', 'zarr']", so I think a minimal environment definition to run would be: name: xarray-tutorial channels: - conda-forge dependencies: - xarray=0.18 - pooch=1.3 - netcdf4=1.5 - zarr=2.8

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5291/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 15 rows from issue in issue_comments
Powered by Datasette · Queries took 158.095ms · About: xarray-datasette