issue_comments: 1304244938
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/pull/7229#issuecomment-1304244938 | https://api.github.com/repos/pydata/xarray/issues/7229 | 1304244938 | IC_kwDOAMm_X85NvTLK | 39069044 | 2022-11-04T20:55:02Z | 2022-11-05T03:37:35Z | CONTRIBUTOR | I considered the As far as passing bare arrays, despite what the docstrings say it seems like you can actually do this with
<xarray.DataArray (x: 2)>
array([1, 2])
Coordinates:
* x (x) int64 0 1
After poking around I agree that this isn't easy to totally fix. I sort of started to go down the route of I'm just keen to get this merged in some form because the regression of #6461 is pretty bad. For example: ```python ds = xr.tutorial.load_dataset('air_temperature') xr.where(ds.air>10, ds.air, 10, keep_attrs=True).to_netcdf('foo.nc') completely fails because the time attrs have been overwritten by ds.air attrsValueError: failed to prevent overwriting existing key units in attrs on variable 'time'. This is probably an encoding field used by xarray to describe how a variable is serialized. To proceed, remove this key from the variable's attributes manually. ``` I hit exactly this issue on some existing scripts so this is preventing me from upgrading beyond |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1424732975 |