home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 702124268

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/4478#issuecomment-702124268 https://api.github.com/repos/pydata/xarray/issues/4478 702124268 MDEyOklzc3VlQ29tbWVudDcwMjEyNDI2OA== 6042212 2020-10-01T13:11:32Z 2020-10-01T13:11:32Z CONTRIBUTOR

The following code, modified to the style of the s3fs test suite, works OK: ```python def test_with_xzarr(s3): da = pytest.importorskip("dask.array") xr = pytest.importorskip("xarray") name = "sample"

nana = xr.DataArray(da.zeros((1023, 1023, 3)))

s3_path = f"{test_bucket_name}/{name}"
s3store = s3.get_mapper(s3_path)

print("Storing")
nana.to_dataset().to_zarr(store=s3store, mode="w", consolidated=True, compute=True)

```

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