Document the new repr · Issue #1199 · pydata/xarray (original) (raw)
Sorry I missed that one when it was decided upon in #1017, but I think the changes in repr
should be documented somewhere (at the minimum in the "Breaking Changes" section of what's new).
I just updated Salem for it to work well with xarray 0.9.0. The changes I had to make where quite small (that's a good thing), but it took me a bit of time to understand what was going on.
What I found confusing is following:
In [1]: import xarray as xr In [2]: ds = xr.DataArray([1, 2, 3]).to_dataset(name='var') In [3]: ds Out[3]: <xarray.Dataset> Dimensions: (dim_0: 3) Coordinates: o dim_0 (dim_0) - Data variables: var (dim_0) int64 1 2 3
In [4]: 'dim_0' in ds.coords Out[4]: False
dim_0
is listed as coordinate, but 'dim_0' in ds.coords
is False
. I think it should remain like this, but maybe we should document somewhere what the "o" and "*" mean?
(possibly here)