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

Ouranosinc / xsdba / 21526505102

30 Jan 2026 06:33PM UTC coverage: 78.418% (-0.2%) from 78.611%
21526505102

push

github

web-flow
Address warnings, refactor grouped_time_indexes (#250)

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

* Addresses warnings stemming from the use of now deprecated
`xarray.cftime_range` (now `xarray.date_range(..., use_cftime=True)`).
* Adds an import check for `numpy.trapezoid`
* Ignores a division by zero `RuntimeWarning` from `numpy` raised by
tests (as is expected).
* Refactors `grouped_time_indexes` to use `GroupBy.map` instead of
`GroupBy.apply`, as well as moderately adjusts internal logic of the
function.

### Does this PR introduce a breaking change?

It should not.

### Other information:

The `grouped_time_indexes` function was refactored with the aid of AI.

16 of 28 new or added lines in 2 files covered. (57.14%)

6 existing lines in 1 file now uncovered.

2805 of 3577 relevant lines covered (78.42%)

5.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.12
/src/xsdba/processing.py


Source Not Available

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