home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 462095728

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/2171#issuecomment-462095728 https://api.github.com/repos/pydata/xarray/issues/2171 462095728 MDEyOklzc3VlQ29tbWVudDQ2MjA5NTcyOA== 1217238 2019-02-10T01:38:28Z 2019-02-10T01:38:42Z MEMBER

I think there are three places where you would need to fix this:

Index based alignment in align(): https://github.com/pydata/xarray/blob/6d2076688d4f5466cf77ace2b196e910c1c0fbb8/xarray/core/alignment.py#L143

Unified dimensions for broadcasting variables, which is defined in two places: https://github.com/pydata/xarray/blob/6d2076688d4f5466cf77ace2b196e910c1c0fbb8/xarray/core/variable.py#L1978 https://github.com/pydata/xarray/blob/6d2076688d4f5466cf77ace2b196e910c1c0fbb8/xarray/core/computation.py#L441

The easiest work around is probably to call .squeeze() on any objects with size 1 dimensions -- then xarray's broadcasting/alignment should all work fine.

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