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

Ouranosinc / xclim / 34492715312
91%

Build:
DEFAULT BRANCH: main
Ran 10 Sep 2026 03:03PM UTC
Jobs 8
Files 62
Run time 1min
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

10 Sep 2026 02:59PM UTC coverage: 90.617% (+0.001%) from 90.616%
34492715312

push

github

web-flow
Updates to IndicatorCollection (#2415)

<!--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 #2423
- [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?
* Registering an indicator to `xclim.core.indicator.registry` is now
optional
* Indicators created in the context of the Collection from a yaml are
not registered by default.

My goal was to uncouple Collections from the main xclim code. Extra
variables are still shared in `xclim.core.VARIABLES`, but this is less
of an issue I think.

One change this will do is fewer warnings about overwriting indicators
when loading a collection. You know things like:
```
UserWarning: Class conversions.WIND_SPEED_FROM_VECTOR already exists and will be overwritten.
```

EDIT: I added two other changes here:
- Possibility to use python qualified names in the yaml for `base` and
`compute`. Ex: `atmos.precip_accumulation` instead of `prcptot`.
- New `bases` section in the Yaml for indicator _class_ definition, i.e.
base classes to reuse when defining indicators.

### Does this PR introduce a breaking change?
Yes, but easily worked around by passing `register=True` to
`IndicatorCollection.from_yaml`. I'm guessing the registering behaviour
was not used a lot for virtual submodules.

74 of 82 new or added lines in 3 files covered. (90.24%)

7996 of 8824 relevant lines covered (90.62%)

7.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
93.43
-2.9% src/xclim/core/collection.py
1
96.28
-0.11% src/xclim/core/indicator.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.12-ubuntu-latest- - 34492715312.1 10 Sep 2026 03:05PM UTC 62
86.3
GitHub Action Run
2 run-3.13-macos-latest- - 34492715312.2 10 Sep 2026 03:08PM UTC 62
89.87
GitHub Action Run
3 run-3.13-windows-latest-prefetch - 34492715312.3 10 Sep 2026 03:11PM UTC 62
89.09
GitHub Action Run
4 run-3.12-ubuntu-latest-offline - 34492715312.4 10 Sep 2026 03:07PM UTC 62
89.28
GitHub Action Run
5 run-3.14-ubuntu-latest- - 34492715312.5 10 Sep 2026 03:04PM UTC 62
86.29
GitHub Action Run
6 run-3.12-ubuntu-latest-doctests - 34492715312.6 10 Sep 2026 03:03PM UTC 62
56.12
GitHub Action Run
7 run-{{ matrix.python-version }}-conda - 34492715312.7 10 Sep 2026 03:04PM UTC 62
89.88
GitHub Action Run
8 run-3.13-ubuntu-latest- - 34492715312.8 10 Sep 2026 03:06PM UTC 62
86.85
GitHub Action Run
Source Files on build 34492715312
  • Tree
  • List 62
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34492715312
  • 66d6126a on github
  • Prev Build on main (#34398790998)
  • Next Build on main (#34614329745)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc