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

Ouranosinc / xclim / 11613924792
92%

Build:
DEFAULT BRANCH: main
Ran 31 Oct 2024 02:36PM UTC
Jobs 8
Files 73
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

31 Oct 2024 02:32PM UTC coverage: 89.396% (+0.02%) from 89.377%
11613924792

push

github

web-flow
Fix injection of added parameters (#1981)

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

The issue was that a YAML definition of an indicator was not able to
inject (set) the `indexer` parameter on indicators that inherited from
`IndexingIndicator` (i.e. indicators that rely on a class-level
implementation of the indexing, instead of compute-level one).

This reorganizes how these class-added arguments are handled. It also
renames them "added" arguments instead of "injected" to clear the
confusion. "injection" now only means an indicator argument that is set
when creating a derived indicator (that what most YAML definitions do).
"added" is an argument that is not in the compute function, but added by
the class.

The example YAML is modified and a test is added using this
modification.

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

The feature was not really documented and now it works instead of not.

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

9375 of 10487 relevant lines covered (89.4%)

7.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.12-ubuntu-latest-standard - 11613924792.1 31 Oct 2024 02:45PM UTC 73
81.69
GitHub Action Run
2 run-{{ matrix.python-version }}-conda - 11613924792.2 31 Oct 2024 02:45PM UTC 73
87.18
GitHub Action Run
3 run-3.10-windows-latest-py310-coverage-prefetch - 11613924792.3 31 Oct 2024 02:45PM UTC 73
81.5
GitHub Action Run
4 run-3.11-ubuntu-latest-py311-coverage-sbck-offline-prefetch - 11613924792.4 31 Oct 2024 02:45PM UTC 73
83.54
GitHub Action Run
5 run-3.10-ubuntu-latest-standard - 11613924792.5 31 Oct 2024 02:45PM UTC 73
81.66
GitHub Action Run
6 11613924792.6 31 Oct 2024 02:45PM UTC 73
81.66
GitHub Action Run
7 run-3.11-macos-latest-py311-coverage-extras - 11613924792.7 31 Oct 2024 02:45PM UTC 73
87.13
GitHub Action Run
8 run-3.11-ubuntu-latest-standard - 11613924792.8 31 Oct 2024 02:45PM UTC 73
83.57
GitHub Action Run
Source Files on build 11613924792
  • Tree
  • List 73
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5e7bd3de on github
  • Prev Build on main (#11601578404)
  • Next Build on main (#11614382336)
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