Uh oh!
There was an error while loading. Please reload this page.
Per-variable specification of boolean parameters in open_dataset - #9218
Conversation
Ostheer
commented
Jul 12, 2024
Can someone tell me if and how I should edit the what's new file? I could add something like - Allow per-variable specification of `mask_and_scale` in `open_dataset` (:pull:`9218`).
By `Mathijs Verhaegh <https://github.com/Ostheer>`_.But I'm not sure where, as I don't know into which upcoming release this commit would be included. |
max-sixty
commented
Jul 12, 2024
This looks good! Great re whatsnew suggestion, within New Features works! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
headtr1ck
commented
Jul 12, 2024
Could also easily extend to other arguments, like |
Co-authored-by: Michael Niklas <mick.niklas@gmail.com>
Otherwise you lose all typing when you use that because it returns Any.
for more information, see https://pre-commit.ci
Ostheer
commented
Jul 12, 2024
Added for 4 more params (46de50f) Feature now affects: mask_and_scale, decode_times, decode_timedelta, use_cftime, concat_characters |
headtr1ck
left a comment
There was a problem hiding this comment.
Add an entry in what's new and this is good! Thanks
Uh oh!
There was an error while loading. Please reload this page.
for more information, see https://pre-commit.ci
…nto granular-mask-and-scale
for more information, see https://pre-commit.ci
Ostheer
commented
Jul 13, 2024
I resolved some minor Mypy issues stemming from the annotations on I can't find how the errors in the logs relate to any of the code changes. Any ideas? |
headtr1ck
commented
Jul 13, 2024
These checks are failing on main as well. There are already some PRs open to fix these. I would say this looks good. |
Ostheer
commented
Jul 13, 2024
I see. Can we then somehow merge this despite the failing checks? I don't think Github lets me. |
headtr1ck
commented
Jul 13, 2024
Yes, no worries. |
Uh oh!
There was an error while loading. Please reload this page.
max-sixty
commented
Jul 16, 2024
Thanks @Ostheer ! |
* main: Enable pandas type checking (pydata#9213) Per-variable specification of boolean parameters in open_dataset (pydata#9218) test push Added a space to the documentation (pydata#9247) Fix typing for test_plot.py (pydata#9234) Allow mypy to run in vscode (pydata#9239) Revert "Test main push" Test main push Revert "Update _typing.py" Update _typing.py Add a `.drop_attrs` method (pydata#8258)
* main: add backend intro and how-to diagram (#9175) Fix copybutton for multi line examples in double digit ipython cells (#9264) Update signature for _arrayfunction.__array__ (#9237) Add encode_cf_datetime benchmark (#9262) groupby, resample: Deprecate some positional args (#9236) Delete ``base`` and ``loffset`` parameters to resample (#9233) Update dropna docstring (#9257) Grouper, Resampler as public api (#8840) Fix mypy on main (#9252) fix fallback isdtype method (#9250) Enable pandas type checking (#9213) Per-variable specification of boolean parameters in open_dataset (#9218) test push Added a space to the documentation (#9247) Fix typing for test_plot.py (#9234)
* main: (54 commits) Adding `open_datatree` backend-specific keyword arguments (#9199) [pre-commit.ci] pre-commit autoupdate (#9202) Restore ability to specify _FillValue as Python native integers (#9258) add backend intro and how-to diagram (#9175) Fix copybutton for multi line examples in double digit ipython cells (#9264) Update signature for _arrayfunction.__array__ (#9237) Add encode_cf_datetime benchmark (#9262) groupby, resample: Deprecate some positional args (#9236) Delete ``base`` and ``loffset`` parameters to resample (#9233) Update dropna docstring (#9257) Grouper, Resampler as public api (#8840) Fix mypy on main (#9252) fix fallback isdtype method (#9250) Enable pandas type checking (#9213) Per-variable specification of boolean parameters in open_dataset (#9218) test push Added a space to the documentation (#9247) Fix typing for test_plot.py (#9234) Allow mypy to run in vscode (#9239) Revert "Test main push" ...
…monotonic-variable * main: (995 commits) Adding `open_datatree` backend-specific keyword arguments (pydata#9199) [pre-commit.ci] pre-commit autoupdate (pydata#9202) Restore ability to specify _FillValue as Python native integers (pydata#9258) add backend intro and how-to diagram (pydata#9175) Fix copybutton for multi line examples in double digit ipython cells (pydata#9264) Update signature for _arrayfunction.__array__ (pydata#9237) Add encode_cf_datetime benchmark (pydata#9262) groupby, resample: Deprecate some positional args (pydata#9236) Delete ``base`` and ``loffset`` parameters to resample (pydata#9233) Update dropna docstring (pydata#9257) Grouper, Resampler as public api (pydata#8840) Fix mypy on main (pydata#9252) fix fallback isdtype method (pydata#9250) Enable pandas type checking (pydata#9213) Per-variable specification of boolean parameters in open_dataset (pydata#9218) test push Added a space to the documentation (pydata#9247) Fix typing for test_plot.py (pydata#9234) Allow mypy to run in vscode (pydata#9239) Revert "Test main push" ...
* main: (54 commits) Adding `open_datatree` backend-specific keyword arguments (pydata#9199) [pre-commit.ci] pre-commit autoupdate (pydata#9202) Restore ability to specify _FillValue as Python native integers (pydata#9258) add backend intro and how-to diagram (pydata#9175) Fix copybutton for multi line examples in double digit ipython cells (pydata#9264) Update signature for _arrayfunction.__array__ (pydata#9237) Add encode_cf_datetime benchmark (pydata#9262) groupby, resample: Deprecate some positional args (pydata#9236) Delete ``base`` and ``loffset`` parameters to resample (pydata#9233) Update dropna docstring (pydata#9257) Grouper, Resampler as public api (pydata#8840) Fix mypy on main (pydata#9252) fix fallback isdtype method (pydata#9250) Enable pandas type checking (pydata#9213) Per-variable specification of boolean parameters in open_dataset (pydata#9218) test push Added a space to the documentation (pydata#9247) Fix typing for test_plot.py (pydata#9234) Allow mypy to run in vscode (pydata#9239) Revert "Test main push" ...

Added feature to choose whether to apply
mask_and_scalefor each DataArray in a Dataset individually.The
mask_and_scaleparameter can now not only bebool, but also a mapping from variable name (str) tobool.- [?] User visible changes (including notable bug fixes) are documented in
whats-new.rstapi.rstI wasn't sure if I was supposed to edit
whats-new.rst, so I didn't touch it.