Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate use of calendar-naive cftime objects #4517

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

spencerkclark
Copy link
Member

@spencerkclark spencerkclark commented Oct 18, 2020

This is a minor cleanup to remove our use of calendar-naive cftime datetime objects (it just occurs in one test). The behavior of the cftime.datetime constructor is set to change in Unidata/cftime#202. By default it will create a calendar-aware datetime with a Gregorian calendar, instead of a calendar-naive datetime. In xarray we don't have a real need to use calendar-naive datetimes, so I think it's just best to remove our use of them.

  • Passes isort . && black . && mypy . && flake8

@dcherian
Copy link
Contributor

Thanks @spencerkclark

@dcherian dcherian merged commit 0f0a5ed into pydata:master Oct 19, 2020
@spencerkclark spencerkclark deleted the update-cftime-test branch October 19, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants