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

Ouranosinc / xclim / 17135170843 / 1
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 21 Aug 2025 06:19PM UTC
Files 59
Run time 4s
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

21 Aug 2025 06:08PM UTC coverage: 88.626%. First build
17135170843.1

push

github

web-flow
Fix tests relying on inexact pint 0.24 and avoid numbagg-introduced noise in standardized index testing (#2228)

<!--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:
- [ ] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #xyz
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGELOG.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?

* Fix tests that were relying on inexact conversions from pint 0.24.4
+ `pr` data flags where strangely inputting an array full of 1 mm/d and
then asserting that the "eq_1_repeating_for_10_or_more_days" tests was
_false_. Fixed to True, skipped with older pint.
+ Similarly, the other test had hardcoded inexact kg m-2 s-1 values that
converted to 1 in pint 0.24.4, but not pint 0.25.
+ The dry spell tests had a day where the precip amount was just under 3
mm because of inexact conversion, but in theory it should have been 3
(which it is in new pint). The threshold was modified to be less
sensitive.
* Avoid `numbagg` for standardized indices. It seems the use (or not) of
numbagg changes only slightly the rolling mean values, but this change
is enough to throw off the mle-fit-based result of the test. I create a
simple fixture that simply deactivates the usage of `numbagg` in the
tests where it is added as an arg.

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


### Other information:

7441 of 8396 relevant lines covered (88.63%)

0.89 hits per line

Source Files on job run-3.11-ubuntu-latest-preliminary - 17135170843.1
  • Tree
  • List 59
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17135170843
  • 1048e3cd on github
  • Next Job for on main (#17138356673.4)
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