issues: 778069594
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 778069594 | MDExOlB1bGxSZXF1ZXN0NTQ4MjI1MDQz | 4760 | WIP: testing.assert_* check dtype | 10194086 | closed | 0 | 8 | 2021-01-04T12:45:00Z | 2022-01-26T08:41:17Z | 2021-10-18T14:06:38Z | MEMBER | 1 | pydata/xarray/pulls/4760 |
This adds a dtype check for When I set
```python import numpy as np import xarray as xr da = xr.DataArray(np.array([0, np.nan], dtype=object)).chunk() da.prod().dtype # -> dtype('O') da.prod().compute().dtype # -> dtype('int64') ```
```python da0 = xr.DataArray(np.array([0], dtype=object)) da1 = xr.DataArray(np.array([0.], dtype=object)) xr.testting.assert_equal(da0, da1, check_dtype=True) ``` |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/4760/reactions",
"total_count": 2,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
13221727 | pull |