sha,message,author_date,committer_date,raw_author,raw_committer,repo,author,committer 3b81a863f6bf96306f90588e4dcef7e54c3af4ea,"Dask-friendly nan check in xr.corr() and xr.cov() (#5284) * initial changes * Using map_blocks to lazily mask input arrays, following #4559 * Adding lazy corr cov test with `raise_if_dask_computes` * adding test for one da without nans * checking ordering of arrays doesnt matter Co-authored-by: Deepak Cherian * adjust inputs to test * add test for array with no missing values * added whatsnew * fixing format issues Co-authored-by: Deepak Cherian ",2021-05-27T17:31:06Z,2021-05-27T17:31:06Z,258fbef6327ed4049c197f2f518305611250de93,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,56925856,19864447 864877c313d026ea5664570741a328324064f77c,"Corrcov typo fix (#4096) * fixing typo in corr, cov docstrings * reverted accidental changes in dataset.chunk() * pep8",2020-05-26T19:03:24Z,2020-05-26T19:03:24Z,258fbef6327ed4049c197f2f518305611250de93,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,56925856,19864447 1de38bc7460fd987338a0bfb78d24645dac35663,"Auto chunk (#4064) * Added chunks='auto' option in dataset.py * FIX: correct dask array handling in _calc_idxminmax (#3922) * FIX: correct dask array handling in _calc_idxminmax * FIX: remove unneeded import, reformat via black * fix idxmax, idxmin with dask arrays * FIX: use array[dim].data in `_calc_idxminmax` as per @keewis suggestion, attach dim name to result * ADD: add dask tests to `idxmin`/`idxmax` dataarray tests * FIX: add back fixture line removed by accident * ADD: complete dask handling in `idxmin`/`idxmax` tests in test_dataarray, xfail dask tests for dtype dateime64 (M) * ADD: add ""support dask handling for idxmin/idxmax"" in whats-new.rst * MIN: reintroduce changes added by #3953 * MIN: change if-clause to use `and` instead of `&` as per review-comment * MIN: change if-clause to use `and` instead of `&` as per review-comment * WIP: remove dask handling entirely for debugging purposes * Test for dask computes * WIP: re-add dask handling (map_blocks-approach), add `with raise_if_dask_computes()` context to idxmin-tests * Use dask indexing instead of map_blocks. * Better chunk choice. * Return -1 for _nan_argminmax_object if all NaNs along dim * Revert ""Return -1 for _nan_argminmax_object if all NaNs along dim"" This reverts commit 58901b9da821a04f2ec085577cb916c4d67f6f50. * Raise error for object arrays * No error for object arrays. Instead expect 1 compute in tests. Co-authored-by: dcherian * fix the failing flake8 CI (#4057) * rename d and l to dim and length * Fixed typo in rasterio docs (#4063) * Added chunks='auto' option in dataset.py Added changes to whats-new.rst * Added chunks='auto' option in dataset.py Added changes to whats-new.rst * Error fix, catch chunks=None * Minor reformatting + flake8 changes * Added isinstance(chunks, (Number, str)) in dataset.py, passing * format changes * added auto-chunk test for dataarrays * Assert chunk sizes equal in auto-chunk test Co-authored-by: Kai Mühlbauer Co-authored-by: dcherian Co-authored-by: keewis Co-authored-by: clausmichele <31700619+clausmichele@users.noreply.github.com> Co-authored-by: Keewis ",2020-05-25T19:23:44Z,2020-05-25T19:23:44Z,258fbef6327ed4049c197f2f518305611250de93,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,56925856,19864447 3194b3ed1e414729ba6ab6f7f3ed39a425da42b1,"xr.cov() and xr.corr() (#4089) * Added chunks='auto' option in dataset.py * reverted accidental changes in dataset.chunk() * Added corr and cov to computation.py. Taken from r-beer:xarray/corr * Added r-beer's tests to test_computation.py Still issues I think * trying to fix github.com/pydata/xarray/pull/3550#discussion_r349935731 * Removing drop=True from the `.where()` calls in `computation.py`+test.py * api.rst and whats-new.rst * Updated `xarray/__init__.py` and added `broadcast` import to computation * added DataArray import to corr, cov * assert_allclose added to test_computation.py * removed whitespace in test_dask...oops * Added to init * format changes * Fiddling around with cov/corr tests in `test_computation.py` * PEP8 changes * pep * remove old todo and comments * isort * Added consistency check between corr() and cov(), ensure they give same * added `skipna=False` to `computation.py`. made consistency+autocov tests * formatting * Added numpy-based tests. * format * formatting again * Update doc/whats-new.rst Co-authored-by: keewis * refactored corr/cov so there is one internal method for calculating both * formatting * updating docstrings and code suggestions from PR * paramterize ddof in tests * removed extraneous test arrays * formatting + adding deterministic docstring * added test for TypeError * formatting * tidying up docstring * formatting and tidying up `_cov_corr()` so that the logic is more clear * flake8 ... Co-authored-by: keewis ",2020-05-25T16:55:33Z,2020-05-25T16:55:33Z,258fbef6327ed4049c197f2f518305611250de93,cd792325681cbad9f663f2879d8b69f1edbb678f,13221727,56925856,19864447