html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/pull/1507#issuecomment-455467849,https://api.github.com/repos/pydata/xarray/issues/1507,455467849,MDEyOklzc3VlQ29tbWVudDQ1NTQ2Nzg0OQ==,4160723,2019-01-18T08:38:01Z,2019-01-18T08:38:01Z,MEMBER,If everyone is happy with this I'm going to merge it.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,249584098
https://github.com/pydata/xarray/pull/1507#issuecomment-454753169,https://api.github.com/repos/pydata/xarray/issues/1507,454753169,MDEyOklzc3VlQ29tbWVudDQ1NDc1MzE2OQ==,4160723,2019-01-16T11:56:04Z,2019-01-16T11:56:04Z,MEMBER,"> I agree with @max-sixty A > C > B but only weakly.
Same opinion.
> This looks v good @benbovy!
I'm just fixing `int32` vs `int64` issue with tests run on appveyor, then to me it's ready to merge unless someone else has objections.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,249584098
https://github.com/pydata/xarray/pull/1507#issuecomment-454505227,https://api.github.com/repos/pydata/xarray/issues/1507,454505227,MDEyOklzc3VlQ29tbWVudDQ1NDUwNTIyNw==,4160723,2019-01-15T18:46:36Z,2019-01-15T18:46:36Z,MEMBER,"> If you want to add that example as a test, that could be a good way of documenting the function. But I don't think it's strictly needed
Yes I could use those examples for the tests. I think it might be good to write shallow tests at least for ``diff_array_repr`` and ``diff_dataset_repr`` (in ``formatting.py``).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,249584098
https://github.com/pydata/xarray/pull/1507#issuecomment-454504146,https://api.github.com/repos/pydata/xarray/issues/1507,454504146,MDEyOklzc3VlQ29tbWVudDQ1NDUwNDE0Ng==,4160723,2019-01-15T18:43:12Z,2019-01-15T18:43:12Z,MEMBER,"I'm wondering which is the best among the options below:
A.
```
Differing data variables:
L var1 (x, y) int64 1 2 3 4 5 7
R var1 (x) int64 1 2
L var2 (x, y) int64 4 5 6 7 8 9
description: variable 2
R var2 (x, y) int64 4 5 6 7 8 9
```
B.
```
Differing data variables:
L
var1 (x, y) int64 1 2 3 4 5 7
R
var1 (x) int64 1 2
L
var2 (x, y) int64 4 5 6 7 8 9
description: variable 2
R
var2 (x, y) int64 4 5 6 7 8 9
```
C.
```
Differing data variables:
L
var1 (x, y) int64 1 2 3 4 5 7
var2 (x, y) int64 4 5 6 7 8 9
description: variable 2
R
var1 (x) int64 1 2
var2 (x, y) int64 4 5 6 7 8 9
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,249584098
https://github.com/pydata/xarray/pull/1507#issuecomment-454496268,https://api.github.com/repos/pydata/xarray/issues/1507,454496268,MDEyOklzc3VlQ29tbWVudDQ1NDQ5NjI2OA==,4160723,2019-01-15T18:19:44Z,2019-01-15T18:19:44Z,MEMBER,"Thanks for reminding me this PR @max-sixty ! It deserves more than no commits since 1.5 years!
The assertion error messages now look like [pytest's failure reports](https://docs.pytest.org/en/stable/example/reportingdemo.html) (see ``test_eq_dict``). I've tried to reuse as much as possible the repr formatting that we already have for the xarray objects.
As examples:
```python
ds_a = xr.Dataset(data_vars={'var1': (('x', 'y'), [[1, 2, 3], [4, 5, 7]]),
'var2': ('x', [3, 4])},
coords={'x': ['a', 'b'], 'y': [1, 2, 3]},
attrs={'units': 'm', 'description': 'desc'})
ds_b = xr.Dataset(data_vars={'var1': ('x', [1, 2])},
coords={'x': ('x', ['a', 'c'], {'source': 0}), 'label': ('x', [1, 2])},
attrs={'units': 'kg'})
```
```
>>> xr.testing.assert_identical(ds_a, ds_b)
AssertionError: Left and right Dataset objects are not identical
Differing dimensions:
(x: 2, y: 3) != (x: 2)
Differing coordinates:
L * x (x) >> xr.testing.assert_equal(da_a, da_b)
AssertionError: Left and right DataArray objects are not equal
Differing values:
L
array([[1, 2, 3],
[4, 5, 7]])
R
array([1, 2])
Differing coordinates:
L * x (x)