issues: 903983811
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
903983811 | MDU6SXNzdWU5MDM5ODM4MTE= | 5387 | KeyError when trying to select a list of DataArrays with different name type | 22245117 | closed | 0 | 6 | 2021-05-27T16:49:27Z | 2021-06-12T17:44:05Z | 2021-06-12T17:44:05Z | CONTRIBUTOR | What happened: Looks like I can't select a list of DataArrays with different name type. What you expected to happen: If this is not a bug, consider raising a more informative error. Minimal Complete Verifiable Example: ```python import xarray as xr from xarray import Dataset, DataArray keys = ["foo", 1] ds = Dataset() for key in keys: ds[key] = DataArray() ds[keys]
Environment: Output of <tt>xr.show_versions()</tt>INSTALLED VERSIONS ------------------ commit: None python: 3.9.4 | packaged by conda-forge | (default, May 10 2021, 22:13:33) [GCC 9.3.0] python-bits: 64 OS: Linux OS-release: 5.8.0-53-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.6 libnetcdf: 4.8.0 xarray: 0.18.2 pandas: 1.2.4 numpy: 1.20.3 scipy: None netCDF4: 1.5.6 pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: 1.5.0 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: 2021.05.0 distributed: 2021.05.0 matplotlib: 3.4.2 cartopy: None seaborn: None numbagg: None pint: 0.17 setuptools: 49.6.0.post20210108 pip: 21.1.2 conda: None pytest: 6.2.4 IPython: 7.23.1 sphinx: None |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/5387/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |