home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1288532110

This data as json

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/7203#issuecomment-1288532110 https://api.github.com/repos/pydata/xarray/issues/7203 1288532110 IC_kwDOAMm_X85MzXCO 14371165 2022-10-24T07:20:32Z 2022-10-24T07:20:32Z MEMBER

``` @requires_netCDF4 def test_repr_file_collapsed(tmp_path) -> None: arr_to_store = xr.DataArray(np.arange(300), dims="test") arr_to_store.to_netcdf(tmp_path / "test.nc", engine="netcdf4")

    with xr.open_dataarray(tmp_path / "test.nc") as arr, xr.set_options(
        display_expand_data=False
    ):
        actual = arr.__repr__()
        expected = dedent(
            """\
        <xarray.DataArray (test: 300)>
        [300 values with dtype=int32]
        Dimensions without coordinates: test"""
        )
      assert actual == expected

E AssertionError: assert '<xarray.Data...dinates: test' == '<xarray.Data...dinates: test' E Skipping 47 identical leading characters in diff, use -v to show E - dtype=int32] E ? ^^ E + dtype=int64] E ? ^^ E Dimensions without coordinates: test ``` Once again differences with windows and mac/linux... I suppose this wasn't tested previously.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1420230433
Powered by Datasette · Queries took 0.859ms · About: xarray-datasette