home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 542938278

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/3238#issuecomment-542938278 https://api.github.com/repos/pydata/xarray/issues/3238 542938278 MDEyOklzc3VlQ29tbWVudDU0MjkzODI3OA== 5635139 2019-10-16T23:56:26Z 2019-10-16T23:56:26Z MEMBER

I think these tests are unrelated and we can merge?

```python

=================================== FAILURES =================================== ____ testdatetime_reduce[False] ______

dask = False

@arm_xfail
@pytest.mark.parametrize("dask", [False, True])
def test_datetime_reduce(dask):
    time = np.array(pd.date_range("15/12/1999", periods=11))
    time[8:11] = np.nan
    da = DataArray(np.linspace(0, 365, num=11), dims="time", coords={"time": time})

    if dask and has_dask:
        chunks = {"time": 5}
        da = da.chunk(chunks)

    actual = da["time"].mean()
  assert not pd.isnull(actual)

E AssertionError: assert not True E + where True = <function isna at 0x7fcbdefdbae8>(<xarray.DataArray 'time' ()>\narray('NaT', dtype='datetime64[ns]')) E + where <function isna at 0x7fcbdefdbae8> = pd.isnull

xarray/tests/test_duck_array_ops.py:288: AssertionError ____ test_datetime_reduce[True] ______

dask = True

@arm_xfail
@pytest.mark.parametrize("dask", [False, True])
def test_datetime_reduce(dask):
    time = np.array(pd.date_range("15/12/1999", periods=11))
    time[8:11] = np.nan
    da = DataArray(np.linspace(0, 365, num=11), dims="time", coords={"time": time})

    if dask and has_dask:
        chunks = {"time": 5}
        da = da.chunk(chunks)

    actual = da["time"].mean()
  assert not pd.isnull(actual)

E AssertionError: assert not True E + where True = <function isna at 0x7fcbdefdbae8>(<xarray.DataArray 'time' ()>\narray('NaT', dtype='datetime64[ns]')) E + where <function isna at 0x7fcbdefdbae8> = pd.isnull ```

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