You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WIP: Optional indexes (no more default coordinates given by range(n)) (#1017)
* Indexes are now optional
* add issue link on optional-indexes to what's new
* Fix test failure on windows
* use shared dimension summary in formatting.py
* missing coordinates appear in the repr
* Mark missing coords with "o" in the repr
If the result would be empty, an error is raised instead:
223
+
If coordinate values for a dimension are missing on either argument, all
224
+
matching dimensions must have the same size:
221
225
222
-
.. ipython::
226
+
.. ipython::python
223
227
224
228
@verbatim
225
-
In [1]: arr[:2] + arr[2:]
226
-
ValueError: no overlapping labels for some dimensions: ['x']
229
+
In [1]: arr + xr.DataArray([1, 2], dims='x')
230
+
ValueError: arguments without labels along dimension 'x' cannot be aligned because they have different dimension size(s) {2} than the size of the aligned dimension labels: 3
231
+
227
232
228
233
However, one can explicitly change this default automatic alignment type ("inner")
229
234
via :py:func:`~xarray.set_options()` in context manager:
0 commit comments