Skip to content

Commit a333a5c

Browse files
authored
removed mention that 'dims' are inferred from 'coords'-dict when omit… (#3821)
* removed mention that 'dims' are inferred from 'coords'-dict when omitted in DataArray (fixes #3820) * added summary of PR #3821 to whats-new
1 parent 1c5e1cd commit a333a5c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/whats-new.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ Bug fixes
7171

7272
Documentation
7373
~~~~~~~~~~~~~
74+
- Fix documentation of :py:class:`DataArray` removing the deprecated mention
75+
that when omitted, `dims` are inferred from a `coords`-dict. (:pull:`3821`)
76+
By `Sander van Rijn <https://github.com/sjvrijn>`_.
7477

7578
Internal Changes
7679
~~~~~~~~~~~~~~~~

xarray/core/dataarray.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,7 @@ def __init__(
304304
Name(s) of the data dimension(s). Must be either a hashable (only
305305
for 1D data) or a sequence of hashables with length equal to the
306306
number of dimensions. If this argument is omitted, dimension names
307-
are taken from ``coords`` (if possible) and otherwise default to
308-
``['dim_0', ... 'dim_n']``.
307+
default to ``['dim_0', ... 'dim_n']``.
309308
name : str or None, optional
310309
Name of this array.
311310
attrs : dict_like or None, optional

0 commit comments

Comments
 (0)