home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1463894170

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/2227#issuecomment-1463894170 https://api.github.com/repos/pydata/xarray/issues/2227 1463894170 IC_kwDOAMm_X85XQUCa 5637662 2023-03-10T14:36:43Z 2023-03-10T14:36:43Z CONTRIBUTOR

I just changed theisel = ds[k].isel(**slc, missing_dims="ignore") to: slcp = [slc[d] if d in slc else slice(None) for d in ds[k].dims] theisel = ds[k].values[tuple(slcp)] And that changed the runtime of my code from (unknown, still running after 3 hours) to around 10 seconds.

ds[k] is a 3 dimensional array slc[d] are 7-d numpy array of integers

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