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

Ouranosinc / xclim / 16603306744
92%

Build:
DEFAULT BRANCH: main
Ran 29 Jul 2025 05:42PM UTC
Jobs 7
Files 59
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

29 Jul 2025 05:37PM UTC coverage: 92.27% (-0.1%) from 92.384%
16603306744

push

github

web-flow
Refactoring wine climatology indices (#2207)

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

* Refactors the latitude correction algorithms into `xc.indices.helpers`
* Adjusts existing wine-climatology call signatures to be more
restrictive about allowed time frequencies
* Adjusted the `"jones"`, method for the `huglin_index` to drop
latitudes falling within the polar extremes:
* For cases where all latitude values for a growing season fall below
`1.0`, that season is dropped from the array.
    * If no season has values above `1.0`, a `ValueError` is raised.
* Added a `cap_value` for simple latitude coefficient functions to allow
users to set an arbitrary value for extreme latitudes (e.g. `np.nan`,
`1.0`, `1.08`, etc.).
* Added the option of setting values for polar days and polar nights in
`day_lengths`
* `day_lengths` no longer modifies the `lat` DataArray passed to it
* latitude-day-length-coefficient algorithms are now found in
`xclim.indices.helpers`:
  * gladstones_day_length_latitude_coefficient
  * huglin_day_length_latitude_coefficient
  * jones_day_length_latitude_coefficient

### Does this PR introduce a breaking change?

Yes. The `icclim` method for calculating Heliothermal Index of Huglin
(HI) has been renamed the `huglin` method. This algorithm is directly
based on the original [Huglin
(1978)](https://www-iuem.univ-brest.fr/wapps/letg/adviclim/BDX/PDF/CR_Acad%C3%A9mie_agriculture_1978_64_Huglin.pdf)
paper. The `icclim` option is still accepted (reverts to `huglin`) but
should be deprecated.

The seasonally-aggregated method for calculating the latitude adjustment
factors in HI and BEDD based on [Hall and Jones
(2010)](https://onlinelibrary.wiley.com/doi/10.1111/j.1755-0238.2010.00100.x)
are now restricted to `YS-JAN` or `YS-JUL` time frequencies.
Additionally, the previous version of the `jones` day-length calculation
were providing erroneous values for extreme latitudes where day-lengths
can extend to either 0 or 24 hours; The new be... (continued)

116 of 137 new or added lines in 2 files covered. (84.67%)

3 existing lines in 1 file now uncovered.

7747 of 8396 relevant lines covered (92.27%)

7.2 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
79.85
3.2% src/xclim/indices/helpers.py
11
87.91
-0.88% src/xclim/indices/_agro.py

Uncovered Existing Lines

Lines Coverage ∆ File
3
79.84
-1.21% src/xclim/testing/utils.py
Jobs
ID Job ID Ran Files Coverage
1 run-{{ matrix.python-version }}-conda - 16603306744.1 30 Jul 2025 05:33PM UTC 58
92.13
GitHub Action Run
2 run-3.10-ubuntu-latest-standard - 16603306744.2 30 Jul 2025 05:35PM UTC 59
88.83
GitHub Action Run
3 run-3.11-ubuntu-latest-preliminary - 16603306744.3 30 Jul 2025 05:35PM UTC 59
88.63
GitHub Action Run
4 run-3.11-macos-latest-py311-coverage-extras-lmoments - 16603306744.4 30 Jul 2025 05:35PM UTC 59
92.07
GitHub Action Run
5 run-3.11-ubuntu-latest-py311-coverage-extras-sbck-offline-prefetch - 16603306744.5 30 Jul 2025 05:35PM UTC 59
88.79
GitHub Action Run
6 run-3.12-windows-latest-py312-coverage-prefetch - 16603306744.6 30 Jul 2025 05:35PM UTC 59
88.36
GitHub Action Run
7 run-3.12-ubuntu-latest-standard - 16603306744.7 30 Jul 2025 05:35PM UTC 59
88.83
GitHub Action Run
Source Files on build 16603306744
  • Tree
  • List 59
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 542e37a1 on github
  • Prev Build on main (#16601897091)
  • Next Build on main (#16728747444)
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