From aa6dd3fcbd152e7dcb52681a163b4de3c41e71fd Mon Sep 17 00:00:00 2001 From: Tom Vo Date: Thu, 25 Jan 2024 09:38:49 -0800 Subject: [PATCH 1/4] Fix `variables` arg typo in `Dataset.sortby()` docstring --- xarray/core/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index c83a56bb373..ad3260569b1 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -7947,7 +7947,7 @@ def sortby( Parameters ---------- - kariables : Hashable, DataArray, sequence of Hashable or DataArray, or Callable + variables : Hashable, DataArray, sequence of Hashable or DataArray, or Callable 1D DataArray objects or name(s) of 1D variable(s) in coords whose values are used to sort this array. If a callable, the callable is passed this object, and the result is used as the value for cond. From f6dc077b84791d4e36fade2be84b5e9c4a5378ba Mon Sep 17 00:00:00 2001 From: Tom Vo Date: Thu, 25 Jan 2024 09:43:05 -0800 Subject: [PATCH 2/4] Add change to `whats-new.rst` --- doc/whats-new.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index ac0015c14c5..2f72339c1cf 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -40,7 +40,9 @@ Bug fixes Documentation ~~~~~~~~~~~~~ - +- Fix `variables` arg typo in `Dataset.sortby()` docstring + (:issue:`8663`, :pull:`8670`) + By `Tom Vo `_. Internal Changes ~~~~~~~~~~~~~~~~ From 5c90ea6a7e9bea6ac357178d91dc49342403c670 Mon Sep 17 00:00:00 2001 From: Tom Vo Date: Thu, 25 Jan 2024 09:43:54 -0800 Subject: [PATCH 3/4] Remove whitespace in `whats-new.rst` --- doc/whats-new.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2f72339c1cf..cb7210d886c 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -42,7 +42,7 @@ Documentation ~~~~~~~~~~~~~ - Fix `variables` arg typo in `Dataset.sortby()` docstring (:issue:`8663`, :pull:`8670`) - By `Tom Vo `_. + By `Tom Vo `_. Internal Changes ~~~~~~~~~~~~~~~~ From 8944886a3e0ec4ec0cf039ee9376f9045b97f10c Mon Sep 17 00:00:00 2001 From: Tom Vo Date: Thu, 25 Jan 2024 11:55:17 -0800 Subject: [PATCH 4/4] Update doc/whats-new.rst Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> --- doc/whats-new.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index cb7210d886c..d52300e83c5 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -41,7 +41,7 @@ Bug fixes Documentation ~~~~~~~~~~~~~ - Fix `variables` arg typo in `Dataset.sortby()` docstring - (:issue:`8663`, :pull:`8670`) + (:issue:`8663`, :pull:`8670`) By `Tom Vo `_. Internal Changes