home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1167344851

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/6728#issuecomment-1167344851 https://api.github.com/repos/pydata/xarray/issues/6728 1167344851 IC_kwDOAMm_X85FlETT 352673 2022-06-27T13:20:14Z 2022-06-27T13:20:14Z NONE

Can you reproduce this without xarray? It should probably be reported upstream? (In the netCDF4 repo?)

Yeah, it can be triggered with:

```python

from netCDF4 import Dataset import h5py import numpy as np import operator

filename = "foobar.h5" with h5py.File(filename, "w") as fp: fp["test"] = np.array(["foo", "bar", "baz"], dtype="|S3")

rootgrp = Dataset("foobar.h5", "r", format="NETCDF4")

This works

print(rootgrp["/test"][slice(None)])

This segfaults

operator.getitem(rootgrp["/test"], slice(None)) ```

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