issues: 310670696
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 310670696 | MDU6SXNzdWUzMTA2NzA2OTY= | 2035 | Manually subtracting two slices of DataArary always produces zero output | 13205162 | closed | 0 | 5 | 2018-04-03T02:22:00Z | 2019-01-22T22:44:43Z | 2019-01-22T22:44:43Z | CONTRIBUTOR | I have witnessing a weird behavior with xarray. Here's a MWE
Expected Output``` <xarray.DataArray (x: 5, y: 5, z: 4)> array([[[-0.22148 , 0.246586, 0.043931, -0.37468 ], [-0.522721, -0.016258, -0.386125, 0.932965], [-0.227799, -0.140233, 0.400886, -0.130469], [-0.04763 , 0.656787, -0.597745, 0.212088], [ 0.089159, 0.376483, -0.712572, 0.397021]],
Coordinates: * z (z) int64 1 2 3 4 * y (y) int64 0 1 2 3 4 * x (x) int64 0 1 2 3 4 ``` The output I'm getting is:```
<xarray.DataArray (x: 5, y: 5, z: 3)>
Coordinates: ``` Is there something I'm missing here or is this really the expected behavior? Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2035/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |