home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 59422084

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/254#issuecomment-59422084 https://api.github.com/repos/pydata/xarray/issues/254 59422084 MDEyOklzc3VlQ29tbWVudDU5NDIyMDg0 1217238 2014-10-16T20:08:12Z 2014-10-16T20:08:12Z MEMBER

Hmm. This is definitely not working as intended. Order should not matter for these operations.

In particular, we definitely don't want operations to result in an array with a boolean coordinate, which is the source of the misalignment issues here (e.g., your array a is the broken one).

One recommended work around is to use plain scalar values instead of scalar DataArrays. float(a.min()), a.min().item() and a.min().values should all work (though the last will return a 0d ndarray rather than a scalar).

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