issue_comments
438 rows where user = 6628425 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
user 1
- spencerkclark · 438 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1567109753 | https://github.com/pydata/xarray/pull/7827#issuecomment-1567109753 | https://api.github.com/repos/pydata/xarray/issues/7827 | IC_kwDOAMm_X85daDJ5 | spencerkclark 6628425 | 2023-05-29T13:00:30Z | 2023-05-29T13:00:30Z | MEMBER | One other tricky edge case that occurs to me is one where an extreme fill value (e.g. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve nanosecond resolution when encoding/decoding times 1700227455 | |
1557089270 | https://github.com/pydata/xarray/pull/7827#issuecomment-1557089270 | https://api.github.com/repos/pydata/xarray/issues/7827 | IC_kwDOAMm_X85cz0v2 | spencerkclark 6628425 | 2023-05-22T11:58:18Z | 2023-05-22T11:58:18Z | MEMBER | Great, yeah, that's a nice example without writing to disk. Indeed I saw those warnings too, but omitted them in my earlier message to focus on the encoding issue (sorry about that). I agree that these are something we should address. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve nanosecond resolution when encoding/decoding times 1700227455 | |
1540065557 | https://github.com/pydata/xarray/issues/7237#issuecomment-1540065557 | https://api.github.com/repos/pydata/xarray/issues/7237 | IC_kwDOAMm_X85by4kV | spencerkclark 6628425 | 2023-05-09T12:52:54Z | 2023-05-09T12:52:54Z | MEMBER | For a little more discussion of this issue see #7493. As the example at the top of the issue notes, there is at least one place where non-nanosecond times can slip in (this is not intentional), but for most code pathways xarray should currently convert things automatically. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
The new NON_NANOSECOND_WARNING is not very nice to end users 1428549868 | |
1540020315 | https://github.com/pydata/xarray/issues/7237#issuecomment-1540020315 | https://api.github.com/repos/pydata/xarray/issues/7237 | IC_kwDOAMm_X85bythb | spencerkclark 6628425 | 2023-05-09T12:11:24Z | 2023-05-09T12:11:24Z | MEMBER | Xarray will convert any non-nanosecond precision times to nanosecond precision (or an error will be raised if this is not possible). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
The new NON_NANOSECOND_WARNING is not very nice to end users 1428549868 | |
1539086265 | https://github.com/pydata/xarray/pull/7827#issuecomment-1539086265 | https://api.github.com/repos/pydata/xarray/issues/7827 | IC_kwDOAMm_X85bvJe5 | spencerkclark 6628425 | 2023-05-08T21:35:16Z | 2023-05-08T21:35:16Z | MEMBER | Thanks @kmuehlbauer -- I just wanted to give you a heads up that I'm pretty busy this week. Hopefully I'll get a free moment to look at this more closely next week. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve nanosecond resolution when encoding/decoding times 1700227455 | |
1538934080 | https://github.com/pydata/xarray/issues/7237#issuecomment-1538934080 | https://api.github.com/repos/pydata/xarray/issues/7237 | IC_kwDOAMm_X85bukVA | spencerkclark 6628425 | 2023-05-08T19:35:05Z | 2023-05-08T19:35:05Z | MEMBER | For the time being xarray should behave as it always has, converting any non-nanosecond precision times to nanosecond-precision before being used internally. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
The new NON_NANOSECOND_WARNING is not very nice to end users 1428549868 | |
1532236037 | https://github.com/pydata/xarray/issues/7790#issuecomment-1532236037 | https://api.github.com/repos/pydata/xarray/issues/7790 | IC_kwDOAMm_X85bVBEF | spencerkclark 6628425 | 2023-05-02T22:28:52Z | 2023-05-02T22:28:52Z | MEMBER | Thanks for the ping @dcherian -- I just gave #7098 a review. I think it's close to ready to merge. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fill values in time arrays (numpy.datetime64) are lost in zarr 1685803922 | |
1528760172 | https://github.com/pydata/xarray/issues/7794#issuecomment-1528760172 | https://api.github.com/repos/pydata/xarray/issues/7794 | IC_kwDOAMm_X85bHwds | spencerkclark 6628425 | 2023-04-29T11:07:29Z | 2023-04-29T11:11:45Z | MEMBER | The ```
This is the full traceback for reference:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
TypeError for time_bnds variable when calling Dataset.to_netcdf 1688779793 | |
1507109914 | https://github.com/pydata/xarray/pull/7731#issuecomment-1507109914 | https://api.github.com/repos/pydata/xarray/issues/7731 | IC_kwDOAMm_X85Z1Kwa | spencerkclark 6628425 | 2023-04-13T14:50:15Z | 2023-04-13T14:50:15Z | MEMBER | Thanks for noting that @dcherian -- I think I got to all of them now. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Continue to use nanosecond-precision Timestamps in precision-sensitive areas 1657396474 | |
1506059299 | https://github.com/pydata/xarray/pull/7731#issuecomment-1506059299 | https://api.github.com/repos/pydata/xarray/issues/7731 | IC_kwDOAMm_X85ZxKQj | spencerkclark 6628425 | 2023-04-12T22:42:26Z | 2023-04-12T22:42:26Z | MEMBER | Thanks all for the help! Fingers crossed things should be all green now. Happy to address any more review comments. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Continue to use nanosecond-precision Timestamps in precision-sensitive areas 1657396474 | |
1499107154 | https://github.com/pydata/xarray/pull/7731#issuecomment-1499107154 | https://api.github.com/repos/pydata/xarray/issues/7731 | IC_kwDOAMm_X85ZWo9S | spencerkclark 6628425 | 2023-04-06T13:57:56Z | 2023-04-06T13:57:56Z | MEMBER | I'm fine waiting until #7724 is merged to let our main CI cover this. Indeed the upstream tests are flaky. Locally I just installed pandas 2 via pip to do testing during development. |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Continue to use nanosecond-precision Timestamps in precision-sensitive areas 1657396474 | |
1498321082 | https://github.com/pydata/xarray/issues/7716#issuecomment-1498321082 | https://api.github.com/repos/pydata/xarray/issues/7716 | IC_kwDOAMm_X85ZTpC6 | spencerkclark 6628425 | 2023-04-06T00:16:46Z | 2023-04-06T00:16:46Z | MEMBER | Thanks @keewis -- I went ahead and added some more detailed thoughts about how to address the cftime-related failures in #7707. I can try to address those soon. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
bad conda solve with pandas 2 1654022522 | |
1498209121 | https://github.com/pydata/xarray/issues/7707#issuecomment-1498209121 | https://api.github.com/repos/pydata/xarray/issues/7707 | IC_kwDOAMm_X85ZTNth | spencerkclark 6628425 | 2023-04-05T21:58:06Z | 2023-04-06T00:11:46Z | MEMBER | I think it is fine that In practice I don't think this will come up very often (we can address later if we want probably), but one subtle issue there is that prior to October 15th, 1582, the proleptic Gregorian calendar and the "standard" calendar are not equivalent, so we may want to update how we warn when converting between calendars. The "standard" calendar according to the CF Conventions is a mixed Julian/Gregorian calendar, which uses a Julian calendar prior to 1582-10-15 and a Gregorian calendar after. In cftime the
I'll need to think more about how to handle the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️ 1650481625 | |
1497629183 | https://github.com/pydata/xarray/issues/7716#issuecomment-1497629183 | https://api.github.com/repos/pydata/xarray/issues/7716 | IC_kwDOAMm_X85ZRAH_ | spencerkclark 6628425 | 2023-04-05T14:54:39Z | 2023-04-05T14:54:39Z | MEMBER | The cftime-related ones are still pandas related, but hopefully should be straightforward to address. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
bad conda solve with pandas 2 1654022522 | |
1492956264 | https://github.com/pydata/xarray/pull/7441#issuecomment-1492956264 | https://api.github.com/repos/pydata/xarray/issues/7441 | IC_kwDOAMm_X85Y_LRo | spencerkclark 6628425 | 2023-04-01T12:22:31Z | 2023-04-01T12:22:31Z | MEMBER | Thanks for cleaning up the merge error I must have introduced; I agree this should be ready to go. |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve formatting of reference time units under pandas 2.0.0 1533980729 | |
1492724527 | https://github.com/pydata/xarray/pull/7441#issuecomment-1492724527 | https://api.github.com/repos/pydata/xarray/issues/7441 | IC_kwDOAMm_X85Y-Ssv | spencerkclark 6628425 | 2023-03-31T23:41:20Z | 2023-03-31T23:41:20Z | MEMBER | Thanks @keewis for fixing this upstream (https://github.com/pandas-dev/pandas/pull/52220)! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve formatting of reference time units under pandas 2.0.0 1533980729 | |
1465318583 | https://github.com/pydata/xarray/pull/7441#issuecomment-1465318583 | https://api.github.com/repos/pydata/xarray/issues/7441 | IC_kwDOAMm_X85XVvy3 | spencerkclark 6628425 | 2023-03-12T22:37:20Z | 2023-03-12T22:37:20Z | MEMBER | Still mulling this over a bit, but one other thing that occurs to me is that if we go with a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve formatting of reference time units under pandas 2.0.0 1533980729 | |
1464917740 | https://github.com/pydata/xarray/issues/7609#issuecomment-1464917740 | https://api.github.com/repos/pydata/xarray/issues/7609 | IC_kwDOAMm_X85XUN7s | spencerkclark 6628425 | 2023-03-11T13:58:20Z | 2023-03-11T13:58:20Z | MEMBER | Answered in #7610. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How to parse a non-standard time unit format as `years since 850-01-01 0:0:0` in xarray library? 1619929803 | |
1460423854 | https://github.com/pydata/xarray/pull/7444#issuecomment-1460423854 | https://api.github.com/repos/pydata/xarray/issues/7444 | IC_kwDOAMm_X85XDEyu | spencerkclark 6628425 | 2023-03-08T16:07:39Z | 2023-03-08T16:07:39Z | MEMBER | Thanks @keewis -- I pushed a fix. The documentation build succeeded. The other build failures look unrelated. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve `base` and `loffset` arguments in `resample` 1535387692 | |
1460037064 | https://github.com/pydata/xarray/pull/7441#issuecomment-1460037064 | https://api.github.com/repos/pydata/xarray/issues/7441 | IC_kwDOAMm_X85XBmXI | spencerkclark 6628425 | 2023-03-08T11:46:04Z | 2023-03-08T11:46:04Z | MEMBER | Hmm I guess I should have run the tests before saying anything. We could probably work around the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve formatting of reference time units under pandas 2.0.0 1533980729 | |
1459255349 | https://github.com/pydata/xarray/pull/7441#issuecomment-1459255349 | https://api.github.com/repos/pydata/xarray/issues/7441 | IC_kwDOAMm_X85W-ng1 | spencerkclark 6628425 | 2023-03-08T03:08:31Z | 2023-03-08T03:08:31Z | MEMBER | Thanks @keewis--great suggestion--I think this should be ready for review now too! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve formatting of reference time units under pandas 2.0.0 1533980729 | |
1459195989 | https://github.com/pydata/xarray/pull/7444#issuecomment-1459195989 | https://api.github.com/repos/pydata/xarray/issues/7444 | IC_kwDOAMm_X85W-ZBV | spencerkclark 6628425 | 2023-03-08T02:34:37Z | 2023-03-08T02:34:37Z | MEMBER | @keewis and @dcherian indeed I just wanted to give it another once over. I think it should be ready for review now. Thanks for your patience on this! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve `base` and `loffset` arguments in `resample` 1535387692 | |
1419032191 | https://github.com/pydata/xarray/issues/7504#issuecomment-1419032191 | https://api.github.com/repos/pydata/xarray/issues/7504 | IC_kwDOAMm_X85UlLZ_ | spencerkclark 6628425 | 2023-02-06T12:51:38Z | 2023-02-06T12:51:38Z | MEMBER | Indeed currently we do not support indexing a CFTimeIndex-backed array using a list of strings, but that's something I think we would be happy to change (e.g. we do accept a list of strings to For the time being you should be able to use |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Selecting dates with .sel() doesn't work when time index is in cftime 1572434353 | |
1416848107 | https://github.com/pydata/xarray/pull/7373#issuecomment-1416848107 | https://api.github.com/repos/pydata/xarray/issues/7373 | IC_kwDOAMm_X85Uc2Lr | spencerkclark 6628425 | 2023-02-04T20:55:55Z | 2023-02-04T20:55:55Z | MEMBER | After debugging locally it looks like the remaining doc build failure was the result of a line I inadvertently deleted further down in the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add `inclusive` argument to `cftime_range` and `date_range` and deprecate `closed` argument 1489128898 | |
1412908603 | https://github.com/pydata/xarray/issues/7493#issuecomment-1412908603 | https://api.github.com/repos/pydata/xarray/issues/7493 | IC_kwDOAMm_X85UN0Y7 | spencerkclark 6628425 | 2023-02-01T23:37:28Z | 2023-02-01T23:37:39Z | MEMBER | Currently in xarray we make the choice based on the calendar attribute associated with the data on disk (following the CF conventions). If the data has a non-standard calendar (or cannot be represented with nanosecond-precision datetime values) then we use cftime; otherwise we use NumPy. Which kind of calendar do PMIP simulations typically use? For some background -- my initial need in this realm came mainly from idealized climate model simulations (e.g. configured to start on 0001-01-01 with a no-leap calendar), so I do not have a ton of experience with paleoclimate research. I would be happy to learn more about your application, however! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interoperability with Pandas 2.0 non-nanosecond datetime 1563104480 | |
1412439718 | https://github.com/pydata/xarray/issues/7493#issuecomment-1412439718 | https://api.github.com/repos/pydata/xarray/issues/7493 | IC_kwDOAMm_X85UMB6m | spencerkclark 6628425 | 2023-02-01T17:25:00Z | 2023-02-01T18:54:41Z | MEMBER | Thanks for joining the meeting today @khider. Some potentially relevant places in the code that come to my mind are:
- Automatic casting to nanosecond precision
- Decoding times via pandas
- Encoding times via pandas
- Though as @shoyer says, searching for Some design questions that come to my mind are (but you don't need an answer to these immediately to start working): - How do we decide which precision to decode times to? Would it be the finest precision that enables decoding without overflow? - This is admittedly in the weeds, but how do we decide when to use cftime and when not to? It seems obvious that in the long term we should use NumPy values for proleptic Gregorian dates of all precisions, but what about dates from the Gregorian calendar (where we may no longer have the luxury that the proleptic Gregorian and Gregorian calendars are equivalent for all representable times)? - Not a blocker (since this is an existing issue) but are there ways we could make working with mixed precision datetime values friendlier with regard to overflow (https://github.com/numpy/numpy/issues/16352)? I worry about examples like this:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interoperability with Pandas 2.0 non-nanosecond datetime 1563104480 | |
1412267822 | https://github.com/pydata/xarray/issues/7493#issuecomment-1412267822 | https://api.github.com/repos/pydata/xarray/issues/7493 | IC_kwDOAMm_X85ULX8u | spencerkclark 6628425 | 2023-02-01T15:38:59Z | 2023-02-01T15:38:59Z | MEMBER | Great -- I'll plan on joining. That's correct. It is at 8:30 AM PT (https://github.com/pydata/xarray/issues/4001). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interoperability with Pandas 2.0 non-nanosecond datetime 1563104480 | |
1412244849 | https://github.com/pydata/xarray/issues/7493#issuecomment-1412244849 | https://api.github.com/repos/pydata/xarray/issues/7493 | IC_kwDOAMm_X85ULSVx | spencerkclark 6628425 | 2023-02-01T15:24:33Z | 2023-02-01T15:24:33Z | MEMBER | I can block out time to join today's meeting or an upcoming one if it would be helpful. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interoperability with Pandas 2.0 non-nanosecond datetime 1563104480 | |
1410846692 | https://github.com/pydata/xarray/issues/7493#issuecomment-1410846692 | https://api.github.com/repos/pydata/xarray/issues/7493 | IC_kwDOAMm_X85UF8_k | spencerkclark 6628425 | 2023-01-31T18:08:11Z | 2023-01-31T18:08:11Z | MEMBER | @dcherian +1. I'm happy to engage with others if they are motivated to start on this earlier. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interoperability with Pandas 2.0 non-nanosecond datetime 1563104480 | |
1410236770 | https://github.com/pydata/xarray/issues/7493#issuecomment-1410236770 | https://api.github.com/repos/pydata/xarray/issues/7493 | IC_kwDOAMm_X85UDoFi | spencerkclark 6628425 | 2023-01-31T12:08:10Z | 2023-01-31T12:08:10Z | MEMBER | Indeed it would be nice if this "just worked" but it may take some time to sort out (sorry that this example initially got your hopes up!). Here what I mean by "address" is continuing to prevent non-nanosecond-precision datetime values from entering xarray through casting to nanosecond precision and raising an informative error if that is not possible. This of course would be temporary until we work through the kinks of enabling such support. In the big picture it is exciting that pandas is doing this in part due to your grant. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interoperability with Pandas 2.0 non-nanosecond datetime 1563104480 | |
1409661324 | https://github.com/pydata/xarray/issues/7493#issuecomment-1409661324 | https://api.github.com/repos/pydata/xarray/issues/7493 | IC_kwDOAMm_X85UBbmM | spencerkclark 6628425 | 2023-01-31T02:44:22Z | 2023-01-31T02:44:22Z | MEMBER | Thanks for posting this general issue @khider. This is something that has been on my radar for several months and I'm on board with it being great to support (eventually this will likely help cftime support as well). I might hesitate to say that I'm actively working on it yet 😬. Right now, in the time I have available, I'm mostly trying to make sure that xarray's existing functionality does not break under pandas 2.0. Once things are a little more stable in pandas with regard to this new feature my plan is to take a deeper dive into what it will take to adopt in xarray (some aspects might need to be handled delicately). We can plan on using this issue for more discussion. As @keewis notes, xarray currently will cast any non-nanosecond precision |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Interoperability with Pandas 2.0 non-nanosecond datetime 1563104480 | |
1407672926 | https://github.com/pydata/xarray/pull/7373#issuecomment-1407672926 | https://api.github.com/repos/pydata/xarray/issues/7373 | IC_kwDOAMm_X85T52Je | spencerkclark 6628425 | 2023-01-29T14:04:55Z | 2023-01-29T14:04:55Z | MEMBER | Thanks for the help @keewis and @dcherian. I think this should be ready for a full review. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add `inclusive` argument to `cftime_range` and `date_range` and deprecate `closed` argument 1489128898 | |
1400379742 | https://github.com/pydata/xarray/issues/7467#issuecomment-1400379742 | https://api.github.com/repos/pydata/xarray/issues/7467 | IC_kwDOAMm_X85TeBle | spencerkclark 6628425 | 2023-01-23T13:47:30Z | 2023-01-23T13:47:30Z | MEMBER | (Obviously the above comment only applies if cftime installed; technically cftime is an optional dependency) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Many tests fail: AttributeError: 'cftime._cftime.DatetimeJulian' object has no attribute 'daysinmonth' 1552630830 | |
1400370743 | https://github.com/pydata/xarray/issues/7467#issuecomment-1400370743 | https://api.github.com/repos/pydata/xarray/issues/7467 | IC_kwDOAMm_X85Td_Y3 | spencerkclark 6628425 | 2023-01-23T13:42:50Z | 2023-01-23T13:46:59Z | MEMBER | @yurivict could you show the output of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Many tests fail: AttributeError: 'cftime._cftime.DatetimeJulian' object has no attribute 'daysinmonth' 1552630830 | |
1398773751 | https://github.com/pydata/xarray/pull/7461#issuecomment-1398773751 | https://api.github.com/repos/pydata/xarray/issues/7461 | IC_kwDOAMm_X85TX5f3 | spencerkclark 6628425 | 2023-01-20T18:24:53Z | 2023-01-20T18:24:53Z | MEMBER | @jhamman nice -- thanks for noting that. I think you can replace and then remove any reference to |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
bump minimum versions, drop py38 1550109629 | |
1397354953 | https://github.com/pydata/xarray/pull/7441#issuecomment-1397354953 | https://api.github.com/repos/pydata/xarray/issues/7441 | IC_kwDOAMm_X85TSfHJ | spencerkclark 6628425 | 2023-01-19T17:33:16Z | 2023-01-19T17:33:16Z | MEMBER | Issue reported here: https://github.com/pandas-dev/pandas/issues/50867. Thanks again for noting that @keewis. I was too narrowly focused on fixing this in xarray. We may still want to be careful about non-nanosecond-precision |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve formatting of reference time units under pandas 2.0.0 1533980729 | |
1397286186 | https://github.com/pydata/xarray/pull/7441#issuecomment-1397286186 | https://api.github.com/repos/pydata/xarray/issues/7441 | IC_kwDOAMm_X85TSOUq | spencerkclark 6628425 | 2023-01-19T16:45:24Z | 2023-01-19T17:16:31Z | MEMBER | Thanks @keewis.
I suspect this may be related to the comment here.
Though indeed the
I can report that to pandas. It's not necessarily surprising considering that it previously was not possible to write |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Preserve formatting of reference time units under pandas 2.0.0 1533980729 | |
1383240645 | https://github.com/pydata/xarray/issues/7420#issuecomment-1383240645 | https://api.github.com/repos/pydata/xarray/issues/7420 | IC_kwDOAMm_X85ScpPF | spencerkclark 6628425 | 2023-01-15T20:12:32Z | 2023-01-15T20:12:32Z | MEMBER | After a git bisect I traced the units encoding errors to https://github.com/pandas-dev/pandas/pull/49737. I made a PR to address this in xarray (#7441), but it turns out this change may be reverted in pandas (https://github.com/pandas-dev/pandas/issues/50704) so I would hold off on reviewing it until a decision is made there. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️ 1519784328 | |
1371626497 | https://github.com/pydata/xarray/issues/7420#issuecomment-1371626497 | https://api.github.com/repos/pydata/xarray/issues/7420 | IC_kwDOAMm_X85RwVwB | spencerkclark 6628425 | 2023-01-05T01:21:33Z | 2023-01-05T01:21:33Z | MEMBER | 7373 should take care of the
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️ 1519784328 | |
1347554206 | https://github.com/pydata/xarray/pull/7361#issuecomment-1347554206 | https://api.github.com/repos/pydata/xarray/issues/7361 | IC_kwDOAMm_X85QUgue | spencerkclark 6628425 | 2022-12-13T00:07:51Z | 2022-12-13T00:07:51Z | MEMBER | Yes, I think that's what we'll end up going with @mroeschke. Thanks for your patience as we worked it out. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
COMPAT: Adjust CFTimeIndex.get_loc for pandas 2.0 deprecation enforcement 1477931237 | |
1345679164 | https://github.com/pydata/xarray/pull/7361#issuecomment-1345679164 | https://api.github.com/repos/pydata/xarray/issues/7361 | IC_kwDOAMm_X85QNW88 | spencerkclark 6628425 | 2022-12-11T22:50:57Z | 2022-12-11T22:50:57Z | MEMBER | Technically I think we would consider My inclination is that it would not require a deprecation cycle, given the warning had already been being raised as in the example above. It's true though that this warning was not being emitted in the case that |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
COMPAT: Adjust CFTimeIndex.get_loc for pandas 2.0 deprecation enforcement 1477931237 | |
1336172648 | https://github.com/pydata/xarray/issues/7266#issuecomment-1336172648 | https://api.github.com/repos/pydata/xarray/issues/7266 | IC_kwDOAMm_X85PpGBo | spencerkclark 6628425 | 2022-12-03T14:36:44Z | 2022-12-03T14:36:44Z | MEMBER | As I think about this more, it wouldn't be too hard for us to support the Maybe you were already thinking along those lines @dcherian. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️: `pandas` removed deprecated keyword arguments 1440280424 | |
1335971694 | https://github.com/pydata/xarray/issues/7266#issuecomment-1335971694 | https://api.github.com/repos/pydata/xarray/issues/7266 | IC_kwDOAMm_X85PoU9u | spencerkclark 6628425 | 2022-12-02T23:56:55Z | 2022-12-02T23:56:55Z | MEMBER | Sorry I didn't get to adding the warning today. I'll try and put something together over the weekend so that it gets into the release after today's. I'm not sure exactly when pandas 2.0 will be out, but regardless I guess at least it could still be valuable for anyone who doesn't upgrade xarray and pandas at the same time. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️: `pandas` removed deprecated keyword arguments 1440280424 | |
1335139569 | https://github.com/pydata/xarray/issues/7266#issuecomment-1335139569 | https://api.github.com/repos/pydata/xarray/issues/7266 | IC_kwDOAMm_X85PlJzx | spencerkclark 6628425 | 2022-12-02T12:03:27Z | 2022-12-02T12:04:20Z | MEMBER | Should we add some sort of deprecation warning regarding the use of the (I did not end up restoring the pandas warning in #7284) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️: `pandas` removed deprecated keyword arguments 1440280424 | |
1312768623 | https://github.com/pydata/xarray/issues/7266#issuecomment-1312768623 | https://api.github.com/repos/pydata/xarray/issues/7266 | IC_kwDOAMm_X85OP0Jv | spencerkclark 6628425 | 2022-11-13T16:21:28Z | 2022-11-13T16:21:28Z | MEMBER | Perhaps we can at least restore the warning in #7284 in case our next release happens to take place before the next pandas release to give users somewhat of a heads up. Apologies for being a bit out of the loop of #4292 at the time. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️: `pandas` removed deprecated keyword arguments 1440280424 | |
1312767572 | https://github.com/pydata/xarray/issues/7266#issuecomment-1312767572 | https://api.github.com/repos/pydata/xarray/issues/7266 | IC_kwDOAMm_X85OPz5U | spencerkclark 6628425 | 2022-11-13T16:16:52Z | 2022-11-13T16:16:52Z | MEMBER | I went ahead and actually implemented the
I agree -- something like that would be useful in general. In this particular case it seems like we were aware of it at one point, but just lost track after silencing it initially for compatibility reasons (https://github.com/pydata/xarray/pull/4292#issuecomment-691665611). Unfortunately that means that this was silenced in user code as well. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️: `pandas` removed deprecated keyword arguments 1440280424 | |
1312756623 | https://github.com/pydata/xarray/issues/6985#issuecomment-1312756623 | https://api.github.com/repos/pydata/xarray/issues/6985 | IC_kwDOAMm_X85OPxOP | spencerkclark 6628425 | 2022-11-13T15:28:18Z | 2022-11-13T15:28:18Z | MEMBER | Thanks for pinging this issue again in #7266 -- apologies for missing it earlier. I think we should adapt to the new |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
FutureWarning for pandas date_range 1361246796 | |
1308705176 | https://github.com/pydata/xarray/issues/7266#issuecomment-1308705176 | https://api.github.com/repos/pydata/xarray/issues/7266 | IC_kwDOAMm_X85OAUGY | spencerkclark 6628425 | 2022-11-09T12:52:11Z | 2022-11-09T12:53:13Z | MEMBER | Yes, I think so too. I can look into it more this weekend. Clearly we need to change the code that relies on pandas immediately. For resampling with a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️: `pandas` removed deprecated keyword arguments 1440280424 | |
1303356166 | https://github.com/pydata/xarray/pull/7238#issuecomment-1303356166 | https://api.github.com/repos/pydata/xarray/issues/7238 | IC_kwDOAMm_X85Nr6MG | spencerkclark 6628425 | 2022-11-04T12:07:19Z | 2022-11-04T12:07:19Z | MEMBER | It looks like I've stumbled upon some new upstream test failures related to https://github.com/pandas-dev/pandas/pull/49101. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Improve non-nanosecond warning 1428748922 | |
1303303334 | https://github.com/pydata/xarray/pull/7238#issuecomment-1303303334 | https://api.github.com/repos/pydata/xarray/issues/7238 | IC_kwDOAMm_X85NrtSm | spencerkclark 6628425 | 2022-11-04T11:39:44Z | 2022-11-04T11:39:44Z | MEMBER | Nice find @mathause! That seems to work. I added a version of that function to |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Improve non-nanosecond warning 1428748922 | |
1296235033 | https://github.com/pydata/xarray/pull/7238#issuecomment-1296235033 | https://api.github.com/repos/pydata/xarray/issues/7238 | IC_kwDOAMm_X85NQvoZ | spencerkclark 6628425 | 2022-10-30T11:56:00Z | 2022-10-30T11:56:00Z | MEMBER | Hmm...I was kind of hoping we could avoid something like adding a ```python import numpy as np import xarray as xr times = [np.datetime64("2000-01-01", "us")] da = xr.DataArray([1], dims=["time"], coords=[times]) ```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Improve non-nanosecond warning 1428748922 | |
1291296935 | https://github.com/pydata/xarray/pull/7201#issuecomment-1291296935 | https://api.github.com/repos/pydata/xarray/issues/7201 | IC_kwDOAMm_X85M96Cn | spencerkclark 6628425 | 2022-10-26T00:59:01Z | 2022-10-26T00:59:01Z | MEMBER |
...which turned up a case that was not valid under the existing pandas version, so I added another separate test. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Emit a warning when converting datetime or timedelta values to nanosecond precision 1419972576 | |
1291275729 | https://github.com/pydata/xarray/pull/7201#issuecomment-1291275729 | https://api.github.com/repos/pydata/xarray/issues/7201 | IC_kwDOAMm_X85M903R | spencerkclark 6628425 | 2022-10-26T00:22:20Z | 2022-10-26T00:22:20Z | MEMBER | Thanks @dcherian -- I did my best to try and cover our bases. For good measure I also added some assertions that the dtypes after conversion were all of nanosecond precision. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Emit a warning when converting datetime or timedelta values to nanosecond precision 1419972576 | |
1288107349 | https://github.com/pydata/xarray/issues/7197#issuecomment-1288107349 | https://api.github.com/repos/pydata/xarray/issues/7197 | IC_kwDOAMm_X85MxvVV | spencerkclark 6628425 | 2022-10-23T12:58:32Z | 2022-10-23T12:58:32Z | MEMBER | No worries @djhoese. I should be able to submit a PR implementing https://github.com/pydata/xarray/issues/7175#issuecomment-1281254828 later today. |
{ "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Unstable pandas causes CF datetime64 issues 1419602897 | |
1281676688 | https://github.com/pydata/xarray/pull/7171#issuecomment-1281676688 | https://api.github.com/repos/pydata/xarray/issues/7171 | IC_kwDOAMm_X85MZNWQ | spencerkclark 6628425 | 2022-10-18T00:58:17Z | 2022-10-18T00:58:17Z | MEMBER | Thanks @dcherian — yes it probably would be good to create an issue to track further discussion about this. Encoding times with float128 values might be of interest to some. I’ll create one tomorrow. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Set `longdouble=False` in `cftime.date2num` within the date encoding context 1410574596 | |
1281665629 | https://github.com/pydata/xarray/issues/7175#issuecomment-1281665629 | https://api.github.com/repos/pydata/xarray/issues/7175 | IC_kwDOAMm_X85MZKpd | spencerkclark 6628425 | 2022-10-18T00:37:31Z | 2022-10-18T00:37:31Z | MEMBER | Yes, I think that’s the safest approach on our side to start out. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️ 1410693563 | |
1280748702 | https://github.com/pydata/xarray/issues/7175#issuecomment-1280748702 | https://api.github.com/repos/pydata/xarray/issues/7175 | IC_kwDOAMm_X85MVqye | spencerkclark 6628425 | 2022-10-17T12:02:42Z | 2022-10-17T12:02:42Z | MEMBER | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️ 1410693563 | ||
1278206409 | https://github.com/pydata/xarray/issues/7145#issuecomment-1278206409 | https://api.github.com/repos/pydata/xarray/issues/7145 | IC_kwDOAMm_X85ML-HJ | spencerkclark 6628425 | 2022-10-13T21:39:21Z | 2022-10-13T21:39:21Z | MEMBER | @durack1 I guess the answer is today thanks to @dcherian :). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Time decoding error message does not include the problematic variable's name 1401909544 | |
1275347589 | https://github.com/pydata/xarray/pull/7147#issuecomment-1275347589 | https://api.github.com/repos/pydata/xarray/issues/7147 | IC_kwDOAMm_X85MBEKF | spencerkclark 6628425 | 2022-10-11T22:26:26Z | 2022-10-11T22:27:36Z | MEMBER | Thanks for taking a look @dcherian. This should at least handle any exceptions raised by |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Include variable name in message if `decode_cf_variable` raises an error 1402017668 | |
1250058482 | https://github.com/pydata/xarray/issues/6906#issuecomment-1250058482 | https://api.github.com/repos/pydata/xarray/issues/6906 | IC_kwDOAMm_X85KgmDy | spencerkclark 6628425 | 2022-09-17T12:00:26Z | 2022-09-17T12:20:41Z | MEMBER | I was able to reproduce this issue in a Docker container using the s390x Debian image. After a little experimentation I narrowed it down to the following minimal example: ```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
regression in cftime on s390 1334835539 | |
1242718333 | https://github.com/pydata/xarray/pull/6940#issuecomment-1242718333 | https://api.github.com/repos/pydata/xarray/issues/6940 | IC_kwDOAMm_X85KEmB9 | spencerkclark 6628425 | 2022-09-10T12:28:16Z | 2022-09-10T12:28:16Z | MEMBER | Oops sorry I missed the merge conflict. Thanks @dcherian and @mathause. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Enable taking the mean of dask-backed cftime arrays 1345573285 | |
1241756493 | https://github.com/pydata/xarray/pull/6988#issuecomment-1241756493 | https://api.github.com/repos/pydata/xarray/issues/6988 | IC_kwDOAMm_X85KA7NN | spencerkclark 6628425 | 2022-09-09T09:50:55Z | 2022-09-09T09:50:55Z | MEMBER | Thanks @mathause for reviewing. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Simplify datetime64 `dt.calendar` tests 1361886569 | |
1241339308 | https://github.com/pydata/xarray/issues/6906#issuecomment-1241339308 | https://api.github.com/repos/pydata/xarray/issues/6906 | IC_kwDOAMm_X85J_VWs | spencerkclark 6628425 | 2022-09-08T23:38:29Z | 2022-09-08T23:38:29Z | MEMBER | Interesting. Thanks for checking that #6988 indeed solves this. I went ahead and merged it, but when I get a chance I’ll keep trying to track down the root cause of this issue. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
regression in cftime on s390 1334835539 | |
1241337041 | https://github.com/pydata/xarray/pull/6988#issuecomment-1241337041 | https://api.github.com/repos/pydata/xarray/issues/6988 | IC_kwDOAMm_X85J_UzR | spencerkclark 6628425 | 2022-09-08T23:34:20Z | 2022-09-08T23:34:20Z | MEMBER | I will go ahead and merge this. I think it’s a positive change regardless, and it’s nice it also helps with #6906. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Simplify datetime64 `dt.calendar` tests 1361886569 | |
1237014040 | https://github.com/pydata/xarray/issues/6906#issuecomment-1237014040 | https://api.github.com/repos/pydata/xarray/issues/6906 | IC_kwDOAMm_X85Ju1YY | spencerkclark 6628425 | 2022-09-05T13:18:21Z | 2022-09-05T13:18:21Z | MEMBER | Thanks @amckinstry. I guess my last try to produce a pandas minimal example might be: ```
I think #6988 should likely work around this issue at least on the xarray side, since it passes |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
regression in cftime on s390 1334835539 | |
1231701908 | https://github.com/pydata/xarray/issues/5436#issuecomment-1231701908 | https://api.github.com/repos/pydata/xarray/issues/5436 | IC_kwDOAMm_X85JakeU | spencerkclark 6628425 | 2022-08-30T13:53:11Z | 2022-08-30T13:53:11Z | MEMBER | I encountered the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
bug or unclear definition of combine_attrs with xr.merge() 911513701 | |
1225514875 | https://github.com/pydata/xarray/issues/6906#issuecomment-1225514875 | https://api.github.com/repos/pydata/xarray/issues/6906 | IC_kwDOAMm_X85JC997 | spencerkclark 6628425 | 2022-08-24T10:13:38Z | 2022-08-24T10:13:38Z | MEMBER | Thanks for trying that. Maybe it has to do with casting to a
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
regression in cftime on s390 1334835539 | |
1222691662 | https://github.com/pydata/xarray/pull/6940#issuecomment-1222691662 | https://api.github.com/repos/pydata/xarray/issues/6940 | IC_kwDOAMm_X85I4MtO | spencerkclark 6628425 | 2022-08-22T17:38:22Z | 2022-08-22T17:38:22Z | MEMBER |
Thanks for noting this @dcherian. I wasn't sure if this was worth bumping our minimum version for, but since our policy allows for it, I'm happy to make that change. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Enable taking the mean of dask-backed cftime arrays 1345573285 | |
1221642349 | https://github.com/pydata/xarray/pull/6940#issuecomment-1221642349 | https://api.github.com/repos/pydata/xarray/issues/6940 | IC_kwDOAMm_X85I0Mht | spencerkclark 6628425 | 2022-08-21T23:24:06Z | 2022-08-21T23:24:06Z | MEMBER | Ah, this still didn't quite work for older dask versions: ``` ====================================================================================================== FAILURES ======================================================================================================= ___________________________________________________________________________________________ test_cftime_datetime_mean[True] ___________________________________________________________________________________________ dask = True @requires_cftime @pytest.mark.parametrize("dask", [False, True]) def test_cftime_datetime_mean(dask): if dask and not has_dask: pytest.skip("requires dask") times = cftime_range("2000", periods=4) da = DataArray(times, dims=["time"]) da_2d = DataArray(times.values.reshape(2, 2)) if dask: da = da.chunk({"time": 2}) da_2d = da_2d.chunk({"dim_0": 2}) expected = da.isel(time=0) # one compute needed to check the array contains cftime datetimes with raise_if_dask_computes(max_computes=1): > result = da.isel(time=0).mean() /Users/spencer/software/xarray/xarray/tests/test_duck_array_ops.py:342: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /Users/spencer/software/xarray/xarray/core/_reductions.py:1478: in mean return self.reduce( /Users/spencer/software/xarray/xarray/core/dataarray.py:2930: in reduce var = self.variable.reduce(func, dim, axis, keep_attrs, keepdims, **kwargs) /Users/spencer/software/xarray/xarray/core/variable.py:1854: in reduce data = func(self.data, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ array = dask.array<getitem, shape=(), dtype=object, chunksize=(), chunktype=numpy.ndarray>, axis = None, skipna = None, kwargs = {} _contains_cftime_datetimes = <function _contains_cftime_datetimes at 0x7fcdd91ce3a0>, offset = dask.array<where, shape=(), dtype=object, chunksize=(), chunktype=numpy.ndarray> timedeltas = dask.array<multiply, shape=(), dtype=float64, chunksize=(), chunktype=numpy.ndarray>, mean_timedeltas = dask.array<mean_agg-aggregate, shape=(), dtype=float64, chunksize=(), chunktype=numpy.ndarray> def mean(array, axis=None, skipna=None, **kwargs): """inhouse mean that can handle np.datetime64 or cftime.datetime dtypes""" from .common import _contains_cftime_datetimes array = asarray(array) if array.dtype.kind in "Mm": offset = _datetime_nanmin(array) # xarray always uses np.datetime64[ns] for np.datetime64 data dtype = "timedelta64[ns]" return ( _mean( datetime_to_numeric(array, offset), axis=axis, skipna=skipna, **kwargs ).astype(dtype) + offset ) elif _contains_cftime_datetimes(array): offset = min(array) timedeltas = datetime_to_numeric(array, offset, datetime_unit="us") mean_timedeltas = _mean(timedeltas, axis=axis, skipna=skipna, **kwargs) > return _to_pytimedelta(mean_timedeltas, unit="us") + offset E TypeError: unsupported operand type(s) for +: 'Array' and 'Array' /Users/spencer/software/xarray/xarray/core/duck_array_ops.py:573: TypeError ``` This appears to be the commit that fixed this issue in dask, meaning it should be fixed as of dask version 2021.07.0: ``` git bisect broken 626cc724ffa1d14cd74f48ff4f21ef443d832afa is the first fixed commit commit 626cc724ffa1d14cd74f48ff4f21ef443d832afa Author: Julia Signell jsignell@gmail.com Date: Tue Jun 29 11:50:36 2021 -0400
dask/array/core.py | 7 ++++++- dask/array/tests/test_gufunc.py | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Enable taking the mean of dask-backed cftime arrays 1345573285 | |
1221528092 | https://github.com/pydata/xarray/issues/6906#issuecomment-1221528092 | https://api.github.com/repos/pydata/xarray/issues/6906 | IC_kwDOAMm_X85Izwoc | spencerkclark 6628425 | 2022-08-21T11:37:47Z | 2022-08-21T11:37:47Z | MEMBER | Apologies for taking a while to look into this. I have not been able to set up an environment to reproduce these test failures, which makes it tricky. It seems like the tests are failing in the setup step, where a DataArray of some random times is generated:
Trying to narrow things down, I guess my first question would be: does the following fail in this environment? Is this maybe a pandas issue? ```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
regression in cftime on s390 1334835539 | |
1164266611 | https://github.com/pydata/xarray/issues/6716#issuecomment-1164266611 | https://api.github.com/repos/pydata/xarray/issues/6716 | IC_kwDOAMm_X85FZUxz | spencerkclark 6628425 | 2022-06-23T10:57:10Z | 2022-06-23T10:57:10Z | MEMBER | 6717 should fix the time decoding errors. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️ 1281386064 | |
1163812213 | https://github.com/pydata/xarray/issues/6716#issuecomment-1163812213 | https://api.github.com/repos/pydata/xarray/issues/6716 | IC_kwDOAMm_X85FXl11 | spencerkclark 6628425 | 2022-06-23T01:02:35Z | 2022-06-23T01:02:35Z | MEMBER | I will investigate these cftime failures more in a bit, but I suspect they may be related to these recent PRs in pandas. It appears they are working towards adding support for non-nanosecond-precision datetimes, which is quite an interesting development. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
⚠️ Nightly upstream-dev CI failed ⚠️ 1281386064 | |
1142421179 | https://github.com/pydata/xarray/pull/6624#issuecomment-1142421179 | https://api.github.com/repos/pydata/xarray/issues/6624 | IC_kwDOAMm_X85EF_a7 | spencerkclark 6628425 | 2022-05-31T17:34:58Z | 2022-05-31T17:34:58Z | MEMBER | Many thanks for restoring this functionality @headtr1ck! |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 1, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CFTime support for polyval 1243123406 | |
1123693473 | https://github.com/pydata/xarray/issues/6589#issuecomment-1123693473 | https://api.github.com/repos/pydata/xarray/issues/6589 | IC_kwDOAMm_X85C-jOh | spencerkclark 6628425 | 2022-05-11T12:28:02Z | 2022-05-11T12:28:02Z | MEMBER | Thanks @sappjw -- this is a distillation of the bug derived from your example: ```
I believe the solution is to also cast all unsigned integer values -- anything with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray improperly decodes times from a NetCDF when it is a uint 1231399637 | |
1112047474 | https://github.com/pydata/xarray/issues/4183#issuecomment-1112047474 | https://api.github.com/repos/pydata/xarray/issues/4183 | IC_kwDOAMm_X85CSH9y | spencerkclark 6628425 | 2022-04-28T10:34:20Z | 2022-04-28T10:34:20Z | MEMBER | This issue was addressed as part of https://github.com/pydata/xarray/pull/4684. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Unable to decode a date in nanoseconds 646038170 | |
1100895150 | https://github.com/pydata/xarray/issues/6453#issuecomment-1100895150 | https://api.github.com/repos/pydata/xarray/issues/6453 | IC_kwDOAMm_X85BnlOu | spencerkclark 6628425 | 2022-04-17T14:55:56Z | 2022-04-17T14:55:56Z | MEMBER | After a little more investigating I think I've narrowed this down to the following example. This particular example happens to be problematic even with the development version of xarray (i.e. it is an existing bug): ``` In [1]: import pandas as pd ...: import xarray as xr In [2]: times = pd.date_range("2000", periods=2) In [3]: variable = xr.Variable(["time"], times) In [4]: variable.encoding Out[4]: {} In [5]: xr.conventions.decode_cf_variable(variable).encoding
Out[5]: {'dtype': dtype('<M8[ns]')}
In this case it seems like we'd prefer not to add or modify any encoding attributes at all -- we are perfectly capable of handling empty encoding dictionaries for datetime-like data when writing it out to disk. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
In a specific case, `decode_cf` adds encoding dtype that breaks `to_netcdf` 1196270877 | |
1094145183 | https://github.com/pydata/xarray/issues/6453#issuecomment-1094145183 | https://api.github.com/repos/pydata/xarray/issues/6453 | IC_kwDOAMm_X85BN1Sf | spencerkclark 6628425 | 2022-04-10T00:07:42Z | 2022-04-10T00:07:42Z | MEMBER | Thanks for the report! This is indeed odd behavior. I was able to reproduce this issue with the latest release of xarray, 2022.3.0, but interestingly when I try running the example with the development version of xarray, everything works: ``` DATASET1: {'long_name': 'time since initialization', 'field': 'time, scalar, series'} {'source': 'https://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/CBOFS/MODELS/2022/04/09/nos.cbofs.regulargrid.n001.20220409.t00z.nc', 'original_shape': (1,), 'dtype': dtype('float64'), 'units': 'seconds since 2016-01-01 00:00:00', 'calendar': 'gregorian'} datetime64[ns] {'source': 'https://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/CBOFS/MODELS/2022/04/09/nos.cbofs.regulargrid.n001.20220409.t00z.nc', 'original_shape': (1,), 'dtype': dtype('float64'), 'units': 'seconds since 2016-01-01 00:00:00', 'calendar': 'gregorian'} DATASET2: {'long_name': 'time since initialization', 'units': 'seconds since 2016-01-01 00:00:00', 'calendar': 'gregorian', 'field': 'time, scalar, series'} {'source': 'https://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/CBOFS/MODELS/2022/04/09/nos.cbofs.regulargrid.n001.20220409.t00z.nc', 'original_shape': (1,), 'dtype': dtype('float64')} float64 {'source': 'https://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/CBOFS/MODELS/2022/04/09/nos.cbofs.regulargrid.n001.20220409.t00z.nc', 'original_shape': (1,), 'dtype': dtype('float64'), 'units': 'seconds since 2016-01-01 00:00:00', 'calendar': 'gregorian'} DATASET3: {'long_name': 'time since initialization', 'field': 'time, scalar, series'} {'source': 'https://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/CBOFS/MODELS/2022/04/09/nos.cbofs.regulargrid.n001.20220409.t00z.nc', 'original_shape': (1,), 'dtype': dtype('float64'), 'units': 'seconds since 2016-01-01 00:00:00', 'calendar': 'gregorian'} datetime64[ns] {'source': 'https://opendap.co-ops.nos.noaa.gov/thredds/dodsC/NOAA/CBOFS/MODELS/2022/04/09/nos.cbofs.regulargrid.n001.20220409.t00z.nc', 'original_shape': (1,), 'dtype': dtype('float64'), 'units': 'seconds since 2016-01-01 00:00:00', 'calendar': 'gregorian'} ``` It's good that this appears to be fixed, but it perhaps suggests we have some missing test coverage. I might see if I can develop a simple test we can add to our test suite. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
In a specific case, `decode_cf` adds encoding dtype that breaks `to_netcdf` 1196270877 | |
1081869682 | https://github.com/pydata/xarray/issues/6412#issuecomment-1081869682 | https://api.github.com/repos/pydata/xarray/issues/6412 | IC_kwDOAMm_X85AfAVy | spencerkclark 6628425 | 2022-03-29T13:25:46Z | 2022-03-29T13:25:46Z | MEMBER | I agree this should be better documented.
The recommended way to extract datetime components, like the year, is to use the
and it will return a DataArray containing the year of each datetime (for more information see the "Datetime components" section of the documentation). |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
numpy datetime conversion with DataArray is not working 1180565228 | |
1078904879 | https://github.com/pydata/xarray/issues/6412#issuecomment-1078904879 | https://api.github.com/repos/pydata/xarray/issues/6412 | IC_kwDOAMm_X85ATsgv | spencerkclark 6628425 | 2022-03-25T10:59:49Z | 2022-03-25T10:59:49Z | MEMBER | This is a common point of confusion, but is in fact expected. Xarray intentionally converts any May I ask what your reason is for requiring a lower-precision datetime type? In xarray we have tried to provide alternatives (e.g. through |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
numpy datetime conversion with DataArray is not working 1180565228 | |
1072813115 | https://github.com/pydata/xarray/pull/6368#issuecomment-1072813115 | https://api.github.com/repos/pydata/xarray/issues/6368 | IC_kwDOAMm_X84_8dQ7 | spencerkclark 6628425 | 2022-03-18T21:21:20Z | 2022-03-18T21:21:20Z | MEMBER | Thanks again @okhoma -- welcome to xarray! |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
#6367 Fix for time units checking could produce "unhashable type" error 1171069302 | |
1059832700 | https://github.com/pydata/xarray/issues/6318#issuecomment-1059832700 | https://api.github.com/repos/pydata/xarray/issues/6318 | IC_kwDOAMm_X84_K8N8 | spencerkclark 6628425 | 2022-03-05T21:19:17Z | 2022-03-05T21:19:17Z | MEMBER | I did a little more digging. I'm not a backend expert, but I think the issue can be distilled to the following. When passed an ordinary NumPy array as an input, In [4]: xarray.Variable(["time"], arr)
Out[4]:
<xarray.Variable (time: 1)>
array(['2000-01-01T00:00:00.000000000'], dtype='datetime64[ns]')
In [6]: xarray.Variable(["time"], lazily_indexed_arr)
Out[6]:
<xarray.Variable (time: 1)>
array(['2000-01-01T00:00:00.000000'], dtype='datetime64[us]')
The casting does not occur in the Is this something that we maybe need to address within the xarray zarr backend? As I understand it, zarr is a bit unusual compared to other storage formats we deal with in that it can store and open |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'numpy.datetime64' object has no attribute 'year' when writing to zarr or netcdf 1157163377 | |
1056924176 | https://github.com/pydata/xarray/issues/6318#issuecomment-1056924176 | https://api.github.com/repos/pydata/xarray/issues/6318 | IC_kwDOAMm_X84-_2IQ | spencerkclark 6628425 | 2022-03-02T13:20:23Z | 2022-03-02T13:20:23Z | MEMBER | To be honest I didn't know it was possible to open a Dataset and maintain In [4]: da Out[4]: <xarray.DataArray 'time' (time: 1)> array(['2000-01-01T00:00:00.000000000'], dtype='datetime64[ns]') Dimensions without coordinates: time ``` I'll try and dig deeper into this in the next few days, but @keewis's workaround should be good in the meantime. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
'numpy.datetime64' object has no attribute 'year' when writing to zarr or netcdf 1157163377 | |
1026812348 | https://github.com/pydata/xarray/issues/6226#issuecomment-1026812348 | https://api.github.com/repos/pydata/xarray/issues/6226 | IC_kwDOAMm_X849M-m8 | spencerkclark 6628425 | 2022-02-01T12:55:34Z | 2022-02-01T12:55:34Z | MEMBER | Awesome, thanks @antarcticrainforest -- yes, it will always have an object |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
open_mfdataset fails with cftime index when using parallel and dask delayed client 1120276279 | |
1026701337 | https://github.com/pydata/xarray/issues/6226#issuecomment-1026701337 | https://api.github.com/repos/pydata/xarray/issues/6226 | IC_kwDOAMm_X849MjgZ | spencerkclark 6628425 | 2022-02-01T10:39:28Z | 2022-02-01T10:39:28Z | MEMBER | Thanks @antarcticrainforest -- I think that's exactly what @mathause is getting at. It seems fairly safe to add a new keyword argument to |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
open_mfdataset fails with cftime index when using parallel and dask delayed client 1120276279 | |
1012153521 | https://github.com/pydata/xarray/issues/6026#issuecomment-1012153521 | https://api.github.com/repos/pydata/xarray/issues/6026 | IC_kwDOAMm_X848VDyx | spencerkclark 6628425 | 2022-01-13T13:49:27Z | 2022-01-13T13:49:27Z | MEMBER | Great! I'll go ahead and close this issue. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Delaying open produces different type of `cftime` object 1063046540 | |
1010114336 | https://github.com/pydata/xarray/pull/5876#issuecomment-1010114336 | https://api.github.com/repos/pydata/xarray/issues/5876 | IC_kwDOAMm_X848NR8g | spencerkclark 6628425 | 2022-01-11T16:06:33Z | 2022-01-11T16:06:33Z | MEMBER | Thanks @pierreloicq! |
{ "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
_season_from_months can now handle np.nan 1030492705 | |
1008312049 | https://github.com/pydata/xarray/pull/5876#issuecomment-1008312049 | https://api.github.com/repos/pydata/xarray/issues/5876 | IC_kwDOAMm_X848GZ7x | spencerkclark 6628425 | 2022-01-09T14:51:33Z | 2022-01-09T17:53:08Z | MEMBER | @dcherian @mathause @andersy005 given a DataArray of times with missing values, do you have any thoughts on what the preferred result of One option would be to return ``` In [3]: times = [np.datetime64("NaT"), np.datetime64("2000-01-01")] In [4]: da = xr.DataArray(times, dims=["x"]) In [5]: da.dt.season Out[5]: <xarray.DataArray 'season' (x: 2)> array([nan, 'DJF'], dtype=object) Dimensions without coordinates: x ``` This would be somewhat in line with how pandas handles this in other contexts (e.g. https://github.com/pydata/xarray/pull/5876#discussion_r734447120). But this sort of awkwardly returns a DataArray of mixed types. Another option, and this is how @pierreloicq implemented things originally, would be to simply return a string label for missing values, e.g.
As I've thought about this more, this feels nicer, because the types are consistent and "season" is just a category label, and |
{ "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
_season_from_months can now handle np.nan 1030492705 | |
1007815885 | https://github.com/pydata/xarray/issues/6143#issuecomment-1007815885 | https://api.github.com/repos/pydata/xarray/issues/6143 | IC_kwDOAMm_X848EgzN | spencerkclark 6628425 | 2022-01-07T23:23:02Z | 2022-01-07T23:23:02Z | MEMBER | Something that might make this easier would be to implement a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
[FEATURE]: allow "now" as input to cftime_range 1094753761 | |
1006524761 | https://github.com/pydata/xarray/issues/6143#issuecomment-1006524761 | https://api.github.com/repos/pydata/xarray/issues/6143 | IC_kwDOAMm_X847_llZ | spencerkclark 6628425 | 2022-01-06T12:01:07Z | 2022-01-06T12:06:31Z | MEMBER | This seems reasonable. We would probably only enable it for real-world calendars, i.e. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
[FEATURE]: allow "now" as input to cftime_range 1094753761 | |
1004761471 | https://github.com/pydata/xarray/issues/6134#issuecomment-1004761471 | https://api.github.com/repos/pydata/xarray/issues/6134 | IC_kwDOAMm_X84743F_ | spencerkclark 6628425 | 2022-01-04T12:19:51Z | 2022-01-04T12:19:51Z | MEMBER | For shift intervals that can be represented as timedeltas this seems reasonably straightforward to add. I would hold off for monthly or annual intervals -- even for 360-day calendars, I don't think that non-integer shift factors are very well-defined in that context, since those frequencies involve rounding, e.g. to the beginnings or ends of months: ``` In [2]: times = xr.cftime_range("2000", freq="7D", periods=7) In [3]: times Out[3]: CFTimeIndex([2000-01-01 00:00:00, 2000-01-08 00:00:00, 2000-01-15 00:00:00, 2000-01-22 00:00:00, 2000-01-29 00:00:00, 2000-02-05 00:00:00, 2000-02-12 00:00:00], dtype='object', length=7, calendar='gregorian', freq='7D') In [4]: times.shift(2, "M") Out[4]: CFTimeIndex([2000-02-29 00:00:00, 2000-02-29 00:00:00, 2000-02-29 00:00:00, 2000-02-29 00:00:00, 2000-02-29 00:00:00, 2000-03-31 00:00:00, 2000-03-31 00:00:00], dtype='object', length=7, calendar='gregorian', freq='None') ``` |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
[FEATURE]: `CFTimeIndex.shift(float)` 1092867975 | |
1004318304 | https://github.com/pydata/xarray/issues/6026#issuecomment-1004318304 | https://api.github.com/repos/pydata/xarray/issues/6026 | IC_kwDOAMm_X8473K5g | spencerkclark 6628425 | 2022-01-03T19:50:55Z | 2022-01-03T19:50:55Z | MEMBER | Sorry for not responding to this issue earlier -- I think this is related to https://github.com/pydata/xarray/issues/5686 (see discussion and links there for more details). I can reproduce your issue with cftime version 1.5.0, and I tested things with cftime version 1.5.1 and it was fixed (i.e. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Delaying open produces different type of `cftime` object 1063046540 | |
999511747 | https://github.com/pydata/xarray/pull/6082#issuecomment-999511747 | https://api.github.com/repos/pydata/xarray/issues/6082 | IC_kwDOAMm_X847k1bD | spencerkclark 6628425 | 2021-12-22T11:40:25Z | 2021-12-22T11:40:25Z | MEMBER | Sounds good -- thanks @mathause! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cftime: 'gregorian' -> 'standard' [test-upstream] 1083281083 | |
977346519 | https://github.com/pydata/xarray/issues/6021#issuecomment-977346519 | https://api.github.com/repos/pydata/xarray/issues/6021 | IC_kwDOAMm_X846QR_X | spencerkclark 6628425 | 2021-11-24T01:05:18Z | 2021-11-24T01:05:18Z | MEMBER | I recall seeing discussion regarding something like this in https://github.com/pydata/xarray/issues/5028 and https://github.com/pydata/xarray/discussions/5275; it seems like upgrading to zarr version 2.8.3 might help. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Variable name becomes lowercase when saving to GCS with `to_zarr` 1061868498 | |
973649826 | https://github.com/pydata/xarray/pull/5876#issuecomment-973649826 | https://api.github.com/repos/pydata/xarray/issues/5876 | IC_kwDOAMm_X846CLei | spencerkclark 6628425 | 2021-11-19T01:41:05Z | 2021-11-19T01:41:05Z | MEMBER | No worries about the cftime tests by the way -- how to best handle missing values in that context is still somewhat of an open question (https://github.com/Unidata/cftime/issues/145). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
_season_from_months can now handle np.nan 1030492705 | |
968911384 | https://github.com/pydata/xarray/issues/5987#issuecomment-968911384 | https://api.github.com/repos/pydata/xarray/issues/5987 | IC_kwDOAMm_X845wGoY | spencerkclark 6628425 | 2021-11-15T13:29:01Z | 2021-11-15T13:29:01Z | MEMBER | @mathause I think the issue is that non-periodic interpolation introduces NaNs into the dataset, which get plotted as a white line. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Plotting interpolated data causes artefacts 1052918815 | |
968298551 | https://github.com/pydata/xarray/issues/5987#issuecomment-968298551 | https://api.github.com/repos/pydata/xarray/issues/5987 | IC_kwDOAMm_X845txA3 | spencerkclark 6628425 | 2021-11-14T14:13:07Z | 2021-11-14T14:13:07Z | MEMBER | Xarray's built-in interpolation method does not know how to handle periodic coordinates, which is why you see the blank center line. I would recommend using xESMF, which is an xarray wrapper of some code specifically written to interpolate from one geospatial grid to another, and knows how to handle periodic coordinates (see the |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Plotting interpolated data causes artefacts 1052918815 | |
966264200 | https://github.com/pydata/xarray/issues/3942#issuecomment-966264200 | https://api.github.com/repos/pydata/xarray/issues/3942 | IC_kwDOAMm_X845mAWI | spencerkclark 6628425 | 2021-11-11T12:30:21Z | 2021-11-11T12:32:06Z | MEMBER | This logic has been around in xarray for a long time (I think it dates back to https://github.com/pydata/xarray/pull/12!), so it predates me. If I had to guess though, it would have to do with the fact that back then, a form of This of course is not true anymore. We no longer use To be honest, currently it seems the only remaining advantage to choosing a larger time encoding unit and proximate reference date is that it makes the raw encoded values a little more human-readable. However, encoding dates with units of |
{ "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 } |
Time dtype encoding defaulting to `int64` when writing netcdf or zarr 595492608 | |
953231867 | https://github.com/pydata/xarray/issues/5155#issuecomment-953231867 | https://api.github.com/repos/pydata/xarray/issues/5155 | IC_kwDOAMm_X8440Sn7 | spencerkclark 6628425 | 2021-10-27T19:12:31Z | 2021-10-27T19:12:31Z | MEMBER |
Yeah, I think that could be something good to strive for, and it's exciting that the explicit indexes refactor could facilitate that. To be clear, are you ok with merging #5233 and waiting until after the refactor is complete to discuss future plans there? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Calendar utilities 857947050 | |
950392205 | https://github.com/pydata/xarray/issues/5889#issuecomment-950392205 | https://api.github.com/repos/pydata/xarray/issues/5889 | IC_kwDOAMm_X844pdWN | spencerkclark 6628425 | 2021-10-24T20:45:36Z | 2021-10-24T20:45:36Z | MEMBER | It would be cool if we could merge #5233 before the next release as well. I think it is ready, and @aulemahal has been diligently working on it for the last several months (and been very patient with my sporadic reviewing frequency). |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Release v0.20? 1034238626 | |
950239817 | https://github.com/pydata/xarray/pull/5723#issuecomment-950239817 | https://api.github.com/repos/pydata/xarray/issues/5723 | IC_kwDOAMm_X844o4JJ | spencerkclark 6628425 | 2021-10-24T00:51:33Z | 2021-10-24T00:51:33Z | MEMBER | @mathause I think this should be ready now. I added some version-dependent logic to the tests. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Remove use of deprecated `kind` argument in `CFTimeIndex` tests 976108741 |
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]);
issue >30