Skip to content

Commit

Permalink
removed mention that 'dims' are inferred from 'coords'-dict when omit… (
Browse files Browse the repository at this point in the history
pydata#3821)

* removed mention that 'dims' are inferred from 'coords'-dict when omitted in DataArray (fixes pydata#3820)

* added summary of PR pydata#3821 to whats-new
  • Loading branch information
sjvrijn authored Mar 3, 2020
1 parent 1c5e1cd commit a333a5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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 <https://github.com/sjvrijn>`_.

Internal Changes
~~~~~~~~~~~~~~~~
Expand Down
3 changes: 1 addition & 2 deletions xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a333a5c

Please sign in to comment.