home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 759397199

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/issues/4798#issuecomment-759397199 https://api.github.com/repos/pydata/xarray/issues/4798 759397199 MDEyOklzc3VlQ29tbWVudDc1OTM5NzE5OQ== 7226087 2021-01-13T11:47:39Z 2021-01-13T11:47:39Z NONE

Actually, this is a problem which is specific to the netcdf4 backend, using h5netcdf, this works: ```python import xarray as xr

ds = xr.Dataset(attrs={"foo": ["bar"]},)

ds.to_netcdf("ds.nc", engine="h5netcdf") rd = xr.open_dataset("ds.nc", engine="h5netcdf")

assert ds.attrs["foo"] == rd.attrs["foo"] ``` and runs without problems.

As soon as I involve netcdf4 in reading or writing, this fails.

I don't know enough about netcdf's on-disk format to really debug what is going on. The ncdump output looks identical to me for both engines.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  784484810
Powered by Datasette · Queries took 0.629ms · About: xarray-datasette