Skip to content

Conversation

@aurghs
Copy link
Collaborator

@aurghs aurghs commented May 16, 2020

Releated to ticket #1621. Add decode_timedelta kwargs in open_dataset, xr.open_datarray, xr.open_zarr, xr.decode_cf. If not passed explicitly the behaviour is not changed.

  • Tests added for xr.decode_cf.
  • Passes isort -rc . && black . && mypy . && flake8
  • Fully documented, including whats-new.rst for all changes and api.rst for new API

chunks,
drop_variables,
use_cftime,
decode_timedelta,
Copy link
Member

@shoyer shoyer May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory, it would be better organized to add this argument after decode_times, but for now what you have done here putting it at the end is a good choice to preserve backwards compatibility. I made a note about making most open_dataset arguments keyword only in #4080.

Copy link
Member

@shoyer shoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice -- looks great to me!

Thanks!

@shoyer shoyer merged commit 742d000 into pydata:master May 19, 2020
@shoyer
Copy link
Member

shoyer commented May 19, 2020

Thank you @aurghs, I'm looking forward to more great PRs!

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