issue_comments
18 rows where author_association = "CONTRIBUTOR" and issue = 387924616 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- CFTimeIndex Resampling · 18 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
460009606 | https://github.com/pydata/xarray/pull/2593#issuecomment-460009606 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ2MDAwOTYwNg== | jwenfai 8708062 | 2019-02-02T23:48:09Z | 2019-02-02T23:48:09Z | CONTRIBUTOR | All tests passed. Thanks, @spencerkclark and @shoyer, for all the help! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
457963032 | https://github.com/pydata/xarray/pull/2593#issuecomment-457963032 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1Nzk2MzAzMg== | jwenfai 8708062 | 2019-01-27T23:08:06Z | 2019-01-27T23:08:06Z | CONTRIBUTOR |
Fix works, all tests are passing now. Thanks! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
456581862 | https://github.com/pydata/xarray/pull/2593#issuecomment-456581862 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NjU4MTg2Mg== | jwenfai 8708062 | 2019-01-22T22:07:24Z | 2019-01-22T22:07:24Z | CONTRIBUTOR | The pandas-dev build job is still failing but everything else is passing. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
456176524 | https://github.com/pydata/xarray/pull/2593#issuecomment-456176524 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NjE3NjUyNA== | jwenfai 8708062 | 2019-01-21T19:22:38Z | 2019-01-21T19:22:38Z | CONTRIBUTOR | I made the changes. Did not preview the .rst files but they should render correctly. For the non-standard calendars, I can't think of any way to test them except to compare them against output from pandas. I think it's fine as long as the original and resampled indices do not go over 28 days. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455907774 | https://github.com/pydata/xarray/pull/2593#issuecomment-455907774 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTkwNzc3NA== | jwenfai 8708062 | 2019-01-20T22:17:51Z | 2019-01-20T22:17:51Z | CONTRIBUTOR | Thanks for showing me how the code could be improved @spencerkclark. I've pushed the changes. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455816654 | https://github.com/pydata/xarray/pull/2593#issuecomment-455816654 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTgxNjY1NA== | jwenfai 8708062 | 2019-01-19T21:28:10Z | 2019-01-19T21:28:10Z | CONTRIBUTOR | I've looked at the failed tests on
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455807650 | https://github.com/pydata/xarray/pull/2593#issuecomment-455807650 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTgwNzY1MA== | jwenfai 8708062 | 2019-01-19T19:20:28Z | 2019-01-19T19:20:28Z | CONTRIBUTOR | Just saw your comment. I've actually resolved the merge conflicts on my end and haven't pushed them yet. Checks for The Going to push my changes and see what CI says. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455788936 | https://github.com/pydata/xarray/pull/2593#issuecomment-455788936 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTc4ODkzNg== | jwenfai 8708062 | 2019-01-19T15:19:01Z | 2019-01-19T15:19:01Z | CONTRIBUTOR | Ignore my last comment, I made a really silly mistake. I assumed it was I think writing targeted unit tests are the last thing on the agenda, so I'll get right on that. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455734854 | https://github.com/pydata/xarray/pull/2593#issuecomment-455734854 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTczNDg1NA== | jwenfai 8708062 | 2019-01-19T01:11:59Z | 2019-01-19T01:12:08Z | CONTRIBUTOR | Thanks for raising the issue with the cftime devs. I've tested the function and it produces exact datetime values but there's still a problem with extra bins and nan location mismatch. I'll report back once I have a clearer idea of what's going on. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455584540 | https://github.com/pydata/xarray/pull/2593#issuecomment-455584540 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTU4NDU0MA== | jwenfai 8708062 | 2019-01-18T15:28:36Z | 2019-01-18T15:28:36Z | CONTRIBUTOR | Your impressions are correct, sorry if my earlier comments confused you. I was just guessing that imprecise The I'll provide examples of extra bins later in the day. For now, here's an example of the datetime imprecision in
which gave me
The extra 8 microseconds shouldn't be there. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455392167 | https://github.com/pydata/xarray/pull/2593#issuecomment-455392167 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTM5MjE2Nw== | jwenfai 8708062 | 2019-01-18T01:17:38Z | 2019-01-18T01:17:38Z | CONTRIBUTOR |
Oh no, I meant that except for all the "values falls before first bin" errors, most (if not all) of the errors are due to shape mismatch between the resampled cftime and pandas arrays. Of the ones I've inspected, the resampled cftime array always has 1 more bin than pandas, e.g.:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
455386887 | https://github.com/pydata/xarray/pull/2593#issuecomment-455386887 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NTM4Njg4Nw== | jwenfai 8708062 | 2019-01-18T00:50:29Z | 2019-01-18T00:50:29Z | CONTRIBUTOR |
Could this issue be related to the linear algebra library? A minimal example would be the earlier example you gave. For both cftime 1.0.0 and 1.0.3.4, I get "mismatch 60.0%".
So I keep pandas' logic (the first bin has 1 day and 1 microsecond added to it) and raise a Value Error when either
I'm testing against the dev version, 11 commits behind. Could the errors for
We probably don't. I forget the reason but early on in development, resampling tests failed for some time ranges when using purely odd frequencies while others failed with purely even ones. Resampling tests for12H/24H frequencies might not be needed now that `_adjust_bin_edges' is being used.
I'll look into writing targeted unit tests. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
454940009 | https://github.com/pydata/xarray/pull/2593#issuecomment-454940009 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1NDk0MDAwOQ== | jwenfai 8708062 | 2019-01-16T21:02:18Z | 2019-01-16T21:02:18Z | CONTRIBUTOR | Hi @spencerkclark, sorry it took so long to get back to you. I've implemented your simplified resampling logic. Some of the logic had to be altered since pandas have made updates. It's great not having to delineate between upsampling/downsampling cases! I ran into some issues though and I thought maybe an extra pair of eyes could help me diagnose them:
CFTimeIndex resampling does not encounter the same error. Nevertheless, I've changed the CFTimeIndex resampling logic so that the first bin value does not have 1 day minus 1 microsecond added to it to (hopefully) rectify the error. Testing against pandas resampling results does not show any difference between the corrected and uncorrected CFTimeIndex resampling code.
Since I've rewritten |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
450544589 | https://github.com/pydata/xarray/pull/2593#issuecomment-450544589 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ1MDU0NDU4OQ== | jwenfai 8708062 | 2018-12-30T07:45:24Z | 2018-12-30T07:45:24Z | CONTRIBUTOR | I'm on a break right now and I'll look more closely at the alternative solution when I'm back, but from what I've read in your comment the solution makes sense. Also, nice job catching why |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
449555459 | https://github.com/pydata/xarray/pull/2593#issuecomment-449555459 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ0OTU1NTQ1OQ== | jwenfai 8708062 | 2018-12-22T08:39:59Z | 2018-12-22T08:39:59Z | CONTRIBUTOR | Glad to see that I'm not the only one getting different results. And I agree (biased as I am) that the additional bin at the end of resampled time series is superfluous. If pandas master with the altered resampling logic will be the definitive version going forward, should development of CFTimeIndex resampling be suspended until this version of pandas master is released and xarray uses it as a dependency? On a somewhat related note, looking over the latest pandas master resample.py made me realize that
https://github.com/pydata/xarray/blob/4317c697900c80604dee793ffc1186e5c57a03fd/xarray/core/resample_cftime.py#L114-L118
is now wrong due to changes made 16 days ago (https://github.com/pandas-dev/pandas/issues/24127) . Since non-integer offset frequencies are not supported by BaseCFTimeOffset, ( |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
449529506 | https://github.com/pydata/xarray/pull/2593#issuecomment-449529506 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ0OTUyOTUwNg== | jwenfai 8708062 | 2018-12-22T00:23:34Z | 2018-12-22T00:23:34Z | CONTRIBUTOR | Can anyone confirm that the latest unreleased build of pandas gives resample results that are different from pandas 0.23.4? I get results that match cftime resampling for downsampling and upsampling without having to rely on |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
448448286 | https://github.com/pydata/xarray/pull/2593#issuecomment-448448286 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ0ODQ0ODI4Ng== | jwenfai 8708062 | 2018-12-19T02:36:38Z | 2018-12-19T02:36:38Z | CONTRIBUTOR | @spencerkclark Sorry about that, must be a couple of commits behind. Should be resolved now. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 | |
447718468 | https://github.com/pydata/xarray/pull/2593#issuecomment-447718468 | https://api.github.com/repos/pydata/xarray/issues/2593 | MDEyOklzc3VlQ29tbWVudDQ0NzcxODQ2OA== | jwenfai 8708062 | 2018-12-17T04:20:51Z | 2018-12-17T04:20:51Z | CONTRIBUTOR | @spencerkclark Thanks for the detailed review! I'll fix up my code over the next few days. I haven't completely solved the upsampling issue yet but I think I might have some clues as to what's happening. Timedelta operations on cftime.datetime does not always return correct values. Sometimes, they are a few microseconds or one second off. The issue can be sidestepped by shifting the the bins 1 second forward for |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTimeIndex Resampling 387924616 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1