You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<xarray.DataArray (x: 2, y: 1)>
array([[1],
[2]])
Dimensions without coordinates: x, y
Attributes:
meta: [10 20 30]
<xarray.DataArray (x: 2, y: 1)>
array([[3],
[4]])
Dimensions without coordinates: x, y
Attributes:
meta: [10 20 30]
<xarray.DataArray (x: 2, y: 2)>
array([[1, 3],
[2, 4]])
Dimensions without coordinates: x, y
Attributes:
meta: [10 20 30]
Equivalence for an array within a nested dictionary as an attribute is evaluated differently than an array attribute, which is non-intuitive. This bug is related to #2060 but is additionally pointing out a difference in evaluation for more complex attributes.
Expected Output
The output of the code sample should concatenate successfully with the nested dictionary attribute, or a more easily interpretable error should be thrown telling me I'm dumb for using dictionaries in attributes. (See #2060)
Code Sample
Fails with the following error:
Problem description
This is a problem because the following code actually executes properly
Equivalence for an array within a nested dictionary as an attribute is evaluated differently than an array attribute, which is non-intuitive. This bug is related to #2060 but is additionally pointing out a difference in evaluation for more complex attributes.
Expected Output
The output of the code sample should concatenate successfully with the nested dictionary attribute, or a more easily interpretable error should be thrown telling me I'm dumb for using dictionaries in attributes. (See #2060)
Output of
xr.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-23-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
xarray: 0.10.9
pandas: 0.23.4
numpy: 1.15.3
scipy: 1.1.0
netCDF4: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: None
PseudonetCDF: None
rasterio: None
iris: None
bottleneck: None
cyordereddict: None
dask: None
distributed: None
matplotlib: 3.0.0
cartopy: None
seaborn: None
setuptools: 40.4.3
pip: 9.0.1
conda: None
pytest: None
IPython: 7.0.1
sphinx: None
The text was updated successfully, but these errors were encountered: