issues
2 rows where type = "issue" and user = 35295222 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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
514792972 | MDU6SXNzdWU1MTQ3OTI5NzI= | 3470 | warn when updating coord.values : indexes are not updated | folmerkrikken 35295222 | closed | 0 | 7 | 2019-10-30T16:05:14Z | 2020-03-23T13:42:50Z | 2020-03-23T13:42:50Z | NONE | Hi, I've recently come across what it seems to be a bit annoying bug. After adding an offset to the time dimension using pd.add_offset(), the wrong times are selected when using .sel(). I've come across this behavior in recent versions of xarray, starting from 0.12. I've now worked around it by using ds.assign_coords(time = ...). I'm not sure however if this is a possible bug in Xarray or Pandas. Below a minimum working example. MCVE Code Sample```python import xarray as xr import pandas as pd import numpy as np temp = 15 + 8 * np.random.randn(2, 2, 3) lon = [[-99.83, -99.32], [-99.79, -99.23]] lat = [[42.25, 42.21], [42.63, 42.59]] ds = xr.Dataset({'temperature': (['x', 'y', 'time'], temp)}, coords={'lon': (['x', 'y'], lon), 'lat': (['x', 'y'], lat), 'time': pd.date_range('2014-09-01', periods=3,freq='MS'), }) seltime = ds.time[2]
ds.time.values = pd.to_datetime(ds.time.values) + pd.DateOffset(months=2)
Expected OutputExpected output is that seltime and ds.sel(time=seltime).time are the same Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3470/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
515320303 | MDU6SXNzdWU1MTUzMjAzMDM= | 3473 | Xarray drops certain coordinates without warning after multiplying datasets | folmerkrikken 35295222 | open | 0 | 1 | 2019-10-31T10:27:58Z | 2019-12-16T18:36:32Z | NONE | files.zip Hi, I really like Xarray because it is doing a lot of work me. However, maybe in this case it was overdoing it a bit. When making a field average of some data (data.nc) I use the grid area as weights (gridarea.nc). However, after multiplying the data with the gridarea the grid changed without warning. The gridarea is constructed using 'cdo gridarea other_data.nc gridarea.nc'. The 'other_data.nc' in this case is from the same climate model and grid as data.nc, though from different simulations (and possibly post-processing). Below a reproducable example, with the nc files attached. MCVE Code Sample
<xarray.Dataset>
Dimensions: (lat: 16, lon: 30, time: 1)
Coordinates:
* time (time) datetime64[ns] 1995-01-01T12:00:00
* lon (lon) float64 0.0 1.125 2.25 3.375 4.5 ... 29.25 30.38 31.5 32.62
* lat (lat) float64 71.21 70.09 68.97 67.85 ... 57.76 56.64 55.51 54.39
Data variables:
U10M (time, lat, lon) float32 ...
<xarray.Dataset> Dimensions: (lat: 12, lon: 30, time: 1) Coordinates: * lat (lat) float64 71.21 70.09 68.97 65.61 ... 58.88 57.76 56.64 55.51 * time (time) datetime64[ns] 1995-01-01T12:00:00 * lon (lon) float64 0.0 1.125 2.25 3.375 4.5 ... 29.25 30.38 31.5 32.62 Data variables: empty ``` Note the different latitude for both datasets Expected OutputThe expected output is to get a dataset with the same grid as the original dataset, however, the latitude has now length 12 i.s.o. length 16 Problem DescriptionAfter digging a bit more into this problem it turns out the grids are not identical.
Could it be possible to either
- make xarray not throw out the unequal values when comparing data, or Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3473/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
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]);