Skip to content
forked from pydata/xarray

Commit

Permalink
ccomment
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Nov 13, 2019
1 parent 433ba71 commit 1bffa83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ def __init__(
data = as_compatible_data(data)
coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
variable = Variable(dims, data, attrs, encoding, fastpath=True)
indexes = dict(_extract_indexes_from_coords(coords))
indexes = dict(
_extract_indexes_from_coords(coords)
) # needed for to_dataset

# These fully describe a DataArray
self._variable = variable
Expand Down

0 comments on commit 1bffa83

Please sign in to comment.