home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1116697033

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
1116697033 I_kwDOAMm_X85Cj3HJ 6202 [Bug]: coords: a list or dictionary of coordinates. , but dictionary is outdated 75610406 open 0     1 2022-01-27T20:16:03Z 2022-01-28T05:02:08Z   NONE      

What happened?

Under "Creating a Data Array" and next to the subitem "coords", it is written, that you can use a dictionary like {'coo1': [1,2,3], 'coo2': ['a', 'b', 'c'], ...}, so you can later skip the "dims". But when I tried this, I get the message, that using a dictionary for coords is outdated.

'ValueError: inferring DataArray dimensions from dictionary like coords is no longer supported. Use an explicit list of dims instead.'

It still works with a list of tuples like: [ ('coo1', [1,2,3]), ('coo2', ['a', 'b', 'c'] ), ... ]

What did you expect to happen?

No response

Minimal Complete Verifiable Example

No response

Relevant log output

No response

Anything else we need to know?

No response

Environment

INSTALLED VERSIONS

commit: None python: 3.6.9 (default, Dec 8 2021, 21:08:43) [GCC 8.4.0] python-bits: 64 OS: Linux OS-release: 4.15.0-163-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.0 libnetcdf: 4.6.0

xarray: 0.16.2 pandas: 1.1.5 numpy: 1.19.5 scipy: 0.19.1 netCDF4: 1.3.1 pydap: None h5netcdf: 0.5.0 h5py: 2.7.1 Nio: None zarr: None cftime: None nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.2.0 dask: 0.16.0 distributed: 0+unknown matplotlib: 3.3.4 cartopy: 0.14.2 seaborn: None numbagg: None pint: 0.8.1 setuptools: 39.0.1 pip: 21.3.1 conda: None pytest: None IPython: 5.5.0 sphinx: 1.6.7

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

Links from other tables

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