home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1128770505

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/issues/5733#issuecomment-1128770505 https://api.github.com/repos/pydata/xarray/issues/5733 1128770505 IC_kwDOAMm_X85DR6vJ 4502 2022-05-17T11:48:26Z 2022-05-17T11:48:26Z NONE

+1 for a check_dim_order option to .equals, assert_equal that can be disabled. (Ideally I think the default would be not to check dim order, but that ship has sailed now).

Or failing that, it would at least be nice to have xarray.testing.assert_equal_modulo_dim_order etc. When writing tests I usually don't care about dimension order and it's frustrating to have to manually do e.g. xarray.testing.assert_allclose(a, b.transpose(a.dims)).

As pointed out, most of the xarray API is dimension-order-invariant and so it's odd to have no supported way to do comparisons in a dimension-order-invariant way.

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