issues: 285294506
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
285294506 | MDU6SXNzdWUyODUyOTQ1MDY= | 1805 | Couldn't change values for on-disk datasets opened by open_mfdataset() (xarray > 0.8.2) | 7342379 | closed | 0 | 11 | 2018-01-01T07:53:45Z | 2020-01-02T17:39:07Z | 2020-01-02T17:39:07Z | NONE | It doesn't work: ``` test = ds.TEST test.values.flags C_CONTIGUOUS : True F_CONTIGUOUS : False OWNDATA : True WRITEABLE : True ALIGNED : True UPDATEIFCOPY : False test.values array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) test.values = 0*test.values test.values array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) ... ``` But it works: ``` test = xr.DataArray(np.ones(10), coords={ 'x': range(10) }, dims=['x'] ) test.values array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) test.values = 0*test.values test.values array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1805/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |