home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1445221673

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/7427#issuecomment-1445221673 https://api.github.com/repos/pydata/xarray/issues/7427 1445221673 IC_kwDOAMm_X85WJFUp 14371165 2023-02-25T22:51:37Z 2023-02-25T22:51:37Z MEMBER

This one is failing on CI / ubuntu-latest py3.9 bare-minimum, is it taking a path without flox installed perhaps?

``` __ TestDataArrayGroupBy.testgroupby_fastpath_for_monotonic ___ [gw2] linux -- Python 3.9.16 /home/runner/micromamba-root/envs/xarray-tests/bin/python

self = <xarray.tests.test_groupby.TestDataArrayGroupBy object at 0x7fbd9f461c10>

def test_groupby_fastpath_for_monotonic(self):
    # Fixes https://github.com/pydata/xarray/issues/6220
    index = [1, 2, 3, 4, 7, 9, 10]
    array = DataArray(np.arange(len(index)), [("idx", index)])
    array_rev = array.copy().assign_coords({"idx": index[::-1]})
    fwd = array.groupby("idx", squeeze=False)
    rev = array_rev.groupby("idx", squeeze=False)

    for gb in [fwd, rev]:
        assert all([isinstance(elem, slice) for elem in gb._group_indices])

    assert_identical(fwd.sum(), array)
  assert_identical(rev.sum(), array_rev.sortby("idx"))

E AssertionError: Left and right DataArray objects are not identical E
E Differing values: E L E array([0, 1, 2, 3, 4, 5, 6]) E R E array([6, 5, 4, 3, 2, 1, 0]) E Differing coordinates: E L * idx (idx) int64 10 9 7 4 3 2 1 E R * idx (idx) int64 1 2 3 4 7 9 10 ```

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