• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ouranosinc / xclim / 5753863869
90%
main: 92%

Build:
Build:
LAST BUILD BRANCH: eco-ci-project
DEFAULT BRANCH: main
Ran 03 Aug 2023 05:38PM UTC
Jobs 2
Files 70
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5753863869

push

github

web-flow
Fix multiindex error on upstream xr (#1450)

<!--Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #1417
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGES.rst has been updated (with summary of main changes)
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added

### What kind of change does this PR introduce?

Overriding a coordinate with a pandas MultiIndex was not working
properly before, but this didn't result in any errors up to a recent
change in xarray's master. When calling `assign_coords` with a
multiindex on a coordinate that already existed, the sub-indexes would
not appear in the DataArray repr. In the most recent xarray master, that
now triggers an error when trying to unstack the multiindex, but only if
dask is used. Before, the unstacking would proceed as normal and the
sub-indexes would magically appear on the result. Dropping the previous
coordinate solves this problem.

The next xarray will implement a new public `xr.Coordinates` class that
should be used to assign coords, instead of a raw `pd.MultiIndex`.
Nonetheless, overriding is still not possible and dropping the previous
coordinate is still needed.

### Does this PR introduce a breaking change?
No.


### Other information:
See pydata/xarray#8039.

3 of 5 new or added lines in 1 file covered. (60.0%)

8258 of 9108 relevant lines covered (90.67%)

3.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-{{ matrix.tox-env }} - 5753863869.1 03 Aug 2023 05:40PM UTC 0
86.23
2 run-{{ matrix.tox-env }}-opt-slow - 5753863869.2 03 Aug 2023 05:40PM UTC 0
90.26
Source Files on build 5753863869
Detailed source file information is not available for this build.
  • Back to Repo
  • f1267280 on github
  • Prev Build on master (#5728842368)
  • Next Build on master (#5893083292)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc