-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
pass kwargs through from save_mfdataset to to_netcdf #6686
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
pass kwargs through from save_mfdataset to to_netcdf #6686
Conversation
* adds a `**kwargs` option to `xarray.save_mfdataset` that passes through to `to_netcdf`
|
|
||
|
|
||
| @pytest.mark.parametrize("test_type", ["baseline", "encoding_and_unlimited_dims"]) | ||
| def test_save_mfdataset_pass_kwargs(test_type): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we move this test in the same test file as the rest of save_mfdataset tests?
xarray/xarray/tests/test_backends.py
Line 3672 in aa1d1d1
| def test_save_mfdataset_roundtrip(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure thing. I'm not sure what the protocol for squashing commits is here: should I push a separate commit, or should I squash it with the original?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we squash commits when merging into main. So, i wouldn't worry about squashing commits in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, got it, thanks!
* Move test_save_mfdataset_pass_kwargs to test_backends.py * Simplify the test
|
In looking at the failing tests, I see that a test associated with dask is failing. I didn't have dask installed in my local test environment, so I missed that. I've installed it and can now see the failed test locally too. I'm looking in to this now. |
Co-authored-by: Anderson Banihirwe <[email protected]>
|
Thanks @taobrienlbl ! |
* main: pass kwargs through from save_mfdataset to to_netcdf (pydata#6686) Docs: indexing.rst finetuning (pydata#6685) use micromamba instead of mamba (pydata#6674) install the development version of `matplotlib` into the upstream-dev CI (pydata#6675) Add whatsnew section for v2022.06.0 release notes for 2022.06.0rc0 release notes for the pre-release (pydata#6676) more testpypi workflow fixes (pydata#6673) thin: add examples (pydata#6663) Update multidimensional-coords.ipynb (pydata#6672) try to finally fix the TestPyPI workflow (pydata#6671) pin setuptools in the modify script (pydata#6669) fix the python version for the TestPyPI workflow (pydata#6668) upload wheels from `main` to TestPyPI (pydata#6660) Set keep_attrs for flox (pydata#6667)
|
thanks @taobrienlbl |
* main: (129 commits) docs on specifying chunks in to_zarr encoding arg (pydata#6542) [skip-ci] List count under Aggregation (pydata#6711) Add `Dataset.dtypes` property (pydata#6706) try to import `UndefinedVariableError` from the new location (pydata#6701) DOC: note of how `chunks` can be defined (pydata#6696) pdyap version dependent client.open_url call (pydata#6656) use `pytest-reportlog` to generate upstream-dev CI failure reports (pydata#6699) [pre-commit.ci] pre-commit autoupdate (pydata#6694) Bump actions/setup-python from 3 to 4 (pydata#6692) Fix Dataset.where with drop=True and mixed dims (pydata#6690) pass kwargs through from save_mfdataset to to_netcdf (pydata#6686) Docs: indexing.rst finetuning (pydata#6685) use micromamba instead of mamba (pydata#6674) install the development version of `matplotlib` into the upstream-dev CI (pydata#6675) Add whatsnew section for v2022.06.0 release notes for 2022.06.0rc0 release notes for the pre-release (pydata#6676) more testpypi workflow fixes (pydata#6673) thin: add examples (pydata#6663) Update multidimensional-coords.ipynb (pydata#6672) ...
Adds a
**kwargsoption toxarray.save_mfdatasetthat passes through toto_netcdf, which allows theencodingandunlimited_dimsarguments to be passed through.**kwargsthrough fromsave_mfdatasettoto_netcdf#6684whats-new.rst