Open dataset cf options conflict solving #3544
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It took some time*, but here is a suggestion to solve option conflicts in xarray.open_dataset().
If any of the options
mask_and_scale
,decode_times
,concat_characters
, ordecode_coords
is manually set and contradicts the manually set choice ofdecode_cf
aValueError
will be raised.This commit requires to change some option default values of open_dataset() parameters from
True
toNone
. I hope this is acceptable.black . && flake8
(mypy
passes in principle, but backends/api.py:21 has an unrelated error)whats-new.rst
for all changes andapi.rst
for new APIWhat do you think? Do I have to add something to
whats-new.rst
andapi.rst
?PS: (*) This is my first PR of this kind and I wanted to build it in a proper testing environment, but I had to set this up first.