issues
2 rows where repo = 13221727, type = "issue" and "updated_at" is on date 2019-04-04 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date), closed_at (date)
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
425905002 | MDU6SXNzdWU0MjU5MDUwMDI= | 2854 | Assign values to DataArray after interpolating Dataset produces an error | dalonsoa 6095790 | closed | 0 | 2 | 2019-03-27T11:27:46Z | 2019-04-04T21:58:24Z | 2019-04-04T21:58:24Z | NONE | Code Sample, a copy-pastable example if possible```python import numpy as np import xarray as xr da = xr.DataArray( np.random.random((3, 4)), dims=["assets", "year"], coords={"year": range(2010, 2018, 2)} ) Interpolate directly the DataArraynew_da = da.interp(year=[2011, 2015]) new_da.loc[{"year": 2015}] = 42 # WORKS! print(new_da) Interpolate DataArray as part of a Datasetdset = xr.Dataset({"my_array": da.copy()}).interp(year=[2011, 2015]) new_da = dset.my_array new_da.loc[{"year": 2015}] = 42 # DOESN'T WORK! print(new_da) ``` Problem descriptionAssigning a value to some locations of a DataArray after it has been interpolated raises an IndexError. This does not occur when the DataArray is interpolated independently, only occurs when the DataArray has been interpolated as part of a Dataset. This problem is not present in xarray<0.12.0 Expected OutputThe above example should print Although I am not sure if it is the cause of this error, I have found that in the first case the array indexes are present and contain [2011, 2015], but they are an empty OrderDict in the second case. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2854/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
427398236 | MDU6SXNzdWU0MjczOTgyMzY= | 2856 | Roundtripping between a dimension coordinate and scalar coordinate on a Dataset | spencerkclark 6628425 | closed | 0 | 4 | 2019-03-31T13:42:39Z | 2019-04-04T21:58:24Z | 2019-04-04T21:58:24Z | MEMBER | Code Sample, a copy-pastable example if possibleIn xarray 0.12.0 the following example produces a Dataset with no indexes: ``` In [1]: import xarray as xr In [2]: da = xr.DataArray([1], [('x', [0])], name='a') In [3]: da.to_dataset().isel(x=0).expand_dims('x').indexes Out[3]: ``` Expected OutputIn xarray 0.11.3 the roundtrip sequence above properly recovers the initial index along the In [2]: da = xr.DataArray([1], [('x', [0])], name='a') In [3]: da.to_dataset().isel(x=0).expand_dims('x').indexes Out[3]: x: Int64Index([0], dtype='int64', name='x') ``` Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2856/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] ( [id] INTEGER PRIMARY KEY, [node_id] TEXT, [number] INTEGER, [title] TEXT, [user] INTEGER REFERENCES [users]([id]), [state] TEXT, [locked] INTEGER, [assignee] INTEGER REFERENCES [users]([id]), [milestone] INTEGER REFERENCES [milestones]([id]), [comments] INTEGER, [created_at] TEXT, [updated_at] TEXT, [closed_at] TEXT, [author_association] TEXT, [active_lock_reason] TEXT, [draft] INTEGER, [pull_request] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [state_reason] TEXT, [repo] INTEGER REFERENCES [repos]([id]), [type] TEXT ); CREATE INDEX [idx_issues_repo] ON [issues] ([repo]); CREATE INDEX [idx_issues_milestone] ON [issues] ([milestone]); CREATE INDEX [idx_issues_assignee] ON [issues] ([assignee]); CREATE INDEX [idx_issues_user] ON [issues] ([user]);