home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 694567822

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/pull/4432#issuecomment-694567822 https://api.github.com/repos/pydata/xarray/issues/4432 694567822 MDEyOklzc3VlQ29tbWVudDY5NDU2NzgyMg== 14808389 2020-09-18T00:11:46Z 2020-09-18T00:11:46Z MEMBER

with the merge we have a test failure: ``` _____ test_persist_Dataset[<lambda>1] ______

persist = <function \<lambda> at 0x7fe8d1646048>

@pytest.mark.parametrize(
    "persist", [lambda x: x.persist(), lambda x: dask.persist(x)[0]]
)
def test_persist_Dataset(persist):
    ds = Dataset({"foo": ("x", range(5)), "bar": ("x", range(5))}).chunk()
    ds = ds + 1
    n = len(ds.foo.data.dask)

    ds2 = persist(ds)
  assert len(ds2.foo.data.dask) == 1

E AssertionError: assert 2 == 1 E + where 2 = len(<dask.highlevelgraph.HighLevelGraph object at 0x7fe8c45f4518>) E + where <dask.highlevelgraph.HighLevelGraph object at 0x7fe8c45f4518> = dask.array<add, shape=(5,), dtype=int64, chunksize=(5,), chunktype=numpy.ndarray>.dask E + where dask.array<add, shape=(5,), dtype=int64, chunksize=(5,), chunktype=numpy.ndarray> = <xarray.DataArray 'foo' (x: 5)>\ndask.array<add, shape=(5,), dtype=int64, chunksize=(5,), chunktype=numpy.ndarray>\nDimensions without coordinates: x.data E + where <xarray.DataArray 'foo' (x: 5)>\ndask.array<add, shape=(5,), dtype=int64, chunksize=(5,), chunktype=numpy.ndarray>\nDimensions without coordinates: x = <xarray.Dataset>\nDimensions: (x: 5)\nDimensions without coordinates: x\nData variables:\n foo (x) int64 dask.array<chunksize=(5,), meta=np.ndarray>\n bar (x) int64 dask.array<chunksize=(5,), meta=np.ndarray>.foo

/home/vsts/work/1/s/xarray/tests/test_dask.py:943: AssertionError ``` does anyone know why that happens?

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