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

Ouranosinc / xclim / 35261583179
91%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2026 06:57PM UTC
Jobs 8
Files 63
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

17 Sep 2026 06:53PM UTC coverage: 90.523% (+0.01%) from 90.512%
35261583179

push

github

web-flow
Fix indicator copy with some defaults - document registries (#2429)

<!--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)
- [ ] CHANGELOG.rst has been updated (with summary of main changes)
- [ ] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added

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

* My bad, the test verifying that either the identifier is given or
register is False was not assuming that `register` is True by default,
this is fixed here.
* Also moved `copy` to `Indicator` and added default values for
`identifier` and `register`, properly documenting that at least one must
be given.
* Fixed the test accordingly.

Also, I realized the registries were not documented. This was harder
than I though because sphinx can't properly use the `autodata` directive
if the object is not referred by its exact path. So in order to use it,
we would need to refer the `registry` in the doc as
`xclim.core.indicator._indicator.registry`, although we want users to
use `xclim.core.indicator.regisry`. This is an old issue :
https://redirect.github.com/sphinx-doc/sphinx/issues/6495

The alternative was to put the documentation directly in the RST file.

### Does this PR introduce a breaking change?
No. It fixes one.

### Other information:

6 of 6 new or added lines in 1 file covered. (100.0%)

8100 of 8948 relevant lines covered (90.52%)

7.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.13-windows-latest-prefetch - 35261583179.1 17 Sep 2026 07:05PM UTC 63
89.05
GitHub Action Run
2 run-3.13-ubuntu-latest- - 35261583179.2 17 Sep 2026 06:59PM UTC 63
86.84
GitHub Action Run
3 run-3.12-ubuntu-latest-offline - 35261583179.3 17 Sep 2026 07:04PM UTC 63
89.24
GitHub Action Run
4 run-3.12-ubuntu-latest-doctests - 35261583179.4 17 Sep 2026 06:57PM UTC 63
55.88
GitHub Action Run
5 run-3.12-ubuntu-latest- - 35261583179.5 17 Sep 2026 06:59PM UTC 63
86.31
GitHub Action Run
6 run-3.13-macos-latest- - 35261583179.6 17 Sep 2026 07:00PM UTC 63
89.8
GitHub Action Run
7 run-3.14-ubuntu-latest- - 35261583179.7 17 Sep 2026 06:57PM UTC 63
86.3
GitHub Action Run
8 run-{{ matrix.python-version }}-conda - 35261583179.8 17 Sep 2026 06:58PM UTC 63
89.81
GitHub Action Run
Source Files on build 35261583179
  • Tree
  • List 63
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35261583179
  • 92e4ab8e on github
  • Prev Build on main (#35151098584)
  • Next Build on main (#35754402123)
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