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

Ouranosinc / xclim / 16372976415
92%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2025 02:29PM UTC
Jobs 8
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

18 Jul 2025 02:24PM UTC coverage: 92.326%. First build
16372976415

push

github

web-flow
Smooth transition between ice and water formulas for saturation vapour pressure + Dewpoint indicator (#2206)

<!--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 #2165
- [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?

* New arguments `interp_power` and `water_thresh` for
`saturation_vapor_pressure` and all related functions. When given,
`interp_power` controls the shape of the transition between ice and
water as reference for the saturation vapour pressure formulas.
+ Deprecated 4 letters methods, but only from the doc. A conversion is
done to support them anyway.
* Rewrite of the e_sat function to make this simpler (?) and extensible
* New methods "buck81" and "aerk96".
* New method "ECMWF" that combines both.
* New indicators:
   + `vapor_pressure` : To compute the partial pressure of water vapor.
+ `dewpoint_from_specific_humidity` : To get `tdps` from `huss` and
`ps`.


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

I changed the value for $\epsilon$ in `specific_humidity` and
`specific_humidity_from_dewpoint` so all three uses of the same constant
are now identical. The change is on the 5th decimal, I don't think it
really "breaks".

I also changed the "var_name" of indicator
`specific_humidity_from_dewpoint` to `huss`, which makes more sense!

75 of 79 new or added lines in 2 files covered. (94.94%)

7664 of 8301 relevant lines covered (92.33%)

8.09 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
93.27
src/xclim/indices/_conversion.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.11-ubuntu-latest-standard - 16372976415.1 18 Jul 2025 02:33PM UTC 59
88.94
GitHub Action Run
2 run-3.11-macos-latest-py311-coverage-extras-lmoments - 16372976415.2 18 Jul 2025 02:33PM UTC 59
92.12
GitHub Action Run
3 run-3.12-windows-latest-py312-coverage-prefetch - 16372976415.3 18 Jul 2025 02:33PM UTC 59
88.37
GitHub Action Run
4 run-3.11-ubuntu-latest-preliminary - 16372976415.4 18 Jul 2025 02:33PM UTC 59
88.64
GitHub Action Run
5 run-3.11-ubuntu-latest-py311-coverage-extras-sbck-offline-prefetch - 16372976415.5 18 Jul 2025 02:33PM UTC 59
88.81
GitHub Action Run
6 run-3.10-ubuntu-latest-standard - 16372976415.6 18 Jul 2025 02:33PM UTC 59
88.84
GitHub Action Run
7 run-{{ matrix.python-version }}-conda - 16372976415.7 18 Jul 2025 02:32PM UTC 58
92.18
GitHub Action Run
8 run-3.12-ubuntu-latest-standard - 16372976415.8 18 Jul 2025 02:33PM UTC 59
88.84
GitHub Action Run
Source Files on build 16372976415
  • Tree
  • List 59
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8a3cff5e on github
  • Prev Build on main (#16197045550)
  • Next Build on main (#16418539286)
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