issues: 377356113
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
377356113 | MDU6SXNzdWUzNzczNTYxMTM= | 2542 | full_like, ones_like, zeros_like should retain subclasses | 500246 | closed | 0 | 4 | 2018-11-05T11:22:49Z | 2023-11-05T06:27:31Z | 2023-11-05T06:27:31Z | CONTRIBUTOR | Code Sample,```python Your code hereimport numpy import xarray class MyDataArray(xarray.DataArray): pass da = MyDataArray(numpy.arange(5)) da2 = xarray.zeros_like(da) print(type(da), type(da2)) ``` Problem descriptionI would expect that
Expected OutputI would hope as an output:
In principle changing this could break people's code, so if a change is implemented it should probably be through an optional keyword argument to the Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2542/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
not_planned | 13221727 | issue |