home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1146377099

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/6662#issuecomment-1146377099 https://api.github.com/repos/pydata/xarray/issues/6662 1146377099 IC_kwDOAMm_X85EVFOL 1197350 2022-06-03T21:30:48Z 2022-06-03T21:30:48Z MEMBER

Following up on the suggestion from @shoyer in to not use a context manager, if I redefine my function as

```python def open_pickle_and_reload(path): of = fsspec.open(path, mode='rb').open() ds1 = xr.open_dataset(of, engine='h5netcdf')

# pickle it and reload it
ds2 = loads(dumps(ds1))
ds2.load()

```

...it appears to work fine.

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