Skip to content

Error with selecting time of DataArray #4924

Answered by spencerkclark
erkoj asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @erkoj -- could you provide a minimal working example? The latest version of cftime (1.4.1) did come with at least one issue that we had to address within xarray (#4870). I would be very interested to know if there was another, as we are set to release a new version of xarray this weekend (#4894).

I'm having trouble reproducing your errors with the development version of xarray with a simple example I concocted, but that could mean either your issue is subtly different, or this is somehow related to using an older version of xarray with the latest cftime:

In [1]: import cftime; import xarray as xr

In [2]: cftime.__version__
Out[2]: '1.4.1'

In [3]: times = xr.cftime_range("1990", …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@erkoj
Comment options

@spencerkclark
Comment options

Answer selected by dcherian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants