home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 806740965

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/2857#issuecomment-806740965 https://api.github.com/repos/pydata/xarray/issues/2857 806740965 MDEyOklzc3VlQ29tbWVudDgwNjc0MDk2NQ== 2418513 2021-03-25T13:27:17Z 2021-03-25T13:27:17Z NONE

Here's the minimal example, try running this:

```python import time import xarray as xr import numpy as np import h5py

arr = xr.DataArray(np.random.RandomState(0).randint(-100, 100, (50_000, 3)), dims=['x', 'y']) ds = xr.Dataset({'arr': arr})

filename = 'test.h5' save = lambda group: ds.to_netcdf(filename, engine='h5netcdf', mode='a', group=str(group))

with h5py.File(filename, 'w') as _: pass

for i in range(250): t0 = time.time() save(i) print(time.time() - t0) ```

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