home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 147962600

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/623#issuecomment-147962600 https://api.github.com/repos/pydata/xarray/issues/623 147962600 MDEyOklzc3VlQ29tbWVudDE0Nzk2MjYwMA== 3404817 2015-10-14T07:33:44Z 2015-10-14T07:33:44Z CONTRIBUTOR

Alright, I see. In that case we should not create an entirely new syntax for this - unless there are more people than just me interested in this feature. I can just use my own little convenience function that generates a series of array indices that can be fed to isel, something like this:

python def wrap_iselkw(ds, dim, istart, istop): """Returns a kw dict for indices from `istart` to `istop` that wrap around dimension `dim`""" n = len(ds[dim]) if istart > istop: istart -= n return { dim : np.mod(np.arange(istart, istop), n) }

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