home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 349151434

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/1759#issuecomment-349151434 https://api.github.com/repos/pydata/xarray/issues/1759 349151434 MDEyOklzc3VlQ29tbWVudDM0OTE1MTQzNA== 306380 2017-12-05T00:14:13Z 2017-12-05T00:14:13Z MEMBER

I still don't understand what actually went wrong here. It looks like we have test coverage for calling compute on an xarray.DataArray (see test_dataarray_with_dask_coords), but even though the exact example from that test fails at the repl the test passes when called with pytest:

I experienced some odd behavior when testing this within the XArray test suite

This file would pass when within xarray/tests/ but would fail when within the root directory

```python import numpy as np import xarray as xr import dask

def test_dask_reduction(): data = xr.DataArray(np.random.random(size=(10, 2)), dims=['samples', 'features']).chunk((5, 2)) result = dask.compute(data.mean(axis=0)) ```

I suspect some odd behavior around mock, but that's probably due to a general bias/lack of understanding of that module.

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