home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1447565936

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/7516#issuecomment-1447565936 https://api.github.com/repos/pydata/xarray/issues/7516 1447565936 IC_kwDOAMm_X85WSBpw 2448579 2023-02-28T04:41:03Z 2023-02-28T04:41:03Z MEMBER

The old code had: nonzeros = zip(clipcond.dims, np.nonzero(clipcond.values))

This loaded the array once and then passed numpy values to the indexing code.

Now, the dask array is passed to the indexing code and is computed many times . #5873 raises an error saying boolean indexing with dask arrays is not allowed.

For here just do ds.where(sel.compute(), drop=True). It's identical to what was happening earlier.

I think we should close this.

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