issues: 1078656323
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1078656323 | I_kwDOAMm_X85ASv1D | 6075 | Broadcasting doesn't respect scalar coordinates | 4502 | open | 0 | 1 | 2021-12-13T15:18:22Z | 2021-12-13T22:10:14Z | NONE | Usually if I apply a broadcasting operation to two arrays, the result only includes values for coordinates present in both. A simple example:
Here the result includes values at all the coordinates [1,2,3], all of which have been broadcast against the scalar value taken at coordinate 2. This doesn't seem correct in general -- values from different coordinates shouldn't be broadcast against eachother by default, even if one of them is a scalar. I would expect this either to result in an error or warning, or to select only the corresponding value at the scalar coordinate in question to broadcast against, resulting in e.g.:
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/6075/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
13221727 | issue |