From 7063ce2388f962f259392639e27504c6cc15bebd Mon Sep 17 00:00:00 2001 From: Sander van Rijn Date: Tue, 3 Mar 2020 00:02:12 +0100 Subject: [PATCH 1/2] removed mention that 'dims' are inferred from 'coords'-dict when omitted in DataArray (fixes #3820) --- xarray/core/dataarray.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index 062cc6342df..b1da0ca1448 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -304,8 +304,7 @@ def __init__( Name(s) of the data dimension(s). Must be either a hashable (only for 1D data) or a sequence of hashables with length equal to the number of dimensions. If this argument is omitted, dimension names - are taken from ``coords`` (if possible) and otherwise default to - ``['dim_0', ... 'dim_n']``. + default to ``['dim_0', ... 'dim_n']``. name : str or None, optional Name of this array. attrs : dict_like or None, optional From 6627ce4b7030267deb5c38e289e88de0619fa390 Mon Sep 17 00:00:00 2001 From: Sander van Rijn Date: Tue, 3 Mar 2020 01:31:19 +0100 Subject: [PATCH 2/2] added summary of PR #3821 to whats-new --- doc/whats-new.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2cc92c78ac8..d9e13ac4e3e 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -61,6 +61,9 @@ Bug fixes Documentation ~~~~~~~~~~~~~ +- Fix documentation of :py:class:`DataArray` removing the deprecated mention + that when omitted, `dims` are inferred from a `coords`-dict. (:pull:`3821`) + By `Sander van Rijn `_. Internal Changes ~~~~~~~~~~~~~~~~