Skip to content

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