home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 260704684

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/1121#issuecomment-260704684 https://api.github.com/repos/pydata/xarray/issues/1121 260704684 MDEyOklzc3VlQ29tbWVudDI2MDcwNDY4NA== 1310437 2016-11-15T17:15:25Z 2016-11-15T17:15:25Z CONTRIBUTOR

I think I found it (#1122). I guess whenever a non-scalar assignment is made (as in result[:] = [value]), something like np.asanyarray is performed on the new value. Luckily, numpy is perfectly happy with indexing of a 0d array with a 0d index (i.e. an empty tuple). Thinking about it, result[0] = value would probably have worked too.

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