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

Ouranosinc / xclim / 11391226087
92%

Build:
DEFAULT BRANCH: main
Ran 17 Oct 2024 06:58PM 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

17 Oct 2024 06:53PM UTC coverage: 89.372% (-0.009%) from 89.381%
11391226087

push

github

web-flow
Fix subdaily rate2amount,  add hydro transformation from lwe thickness to amount (#1963)

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

* The `_rate_to_amount_converter` relied on the `FREQ_UNITS` directly,
now it goes through `infer_sampling_units` instead. In exchange for
slightly more code, this fixes the issue for sub-daily freqs and gives a
better error for frequencies xclim can't understand.
* Add the "lwe thickness -> amount" hydro transformation. The inverse
was already there. This is to go from a thickness of liquid water (ex:
mm of rain) to an amount (ex: kg m-2), by multiplying by the liquid
water density (1000 kg m-3).

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

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

2 existing lines in 1 file now uncovered.

9368 of 10482 relevant lines covered (89.37%)

7.55 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
95.12
-0.7% xclim/sdba/base.py
Jobs
ID Job ID Ran Files Coverage
1 run-{{ matrix.python-version }}-conda - 11391226087.1 17 Oct 2024 07:06PM UTC 73
87.27
GitHub Action Run
2 run-3.10-windows-latest-py310-coverage-prefetch - 11391226087.2 17 Oct 2024 07:06PM UTC 73
81.49
GitHub Action Run
3 run-3.11-ubuntu-latest-standard - 11391226087.3 17 Oct 2024 07:06PM UTC 73
83.56
GitHub Action Run
4 run-3.12-ubuntu-latest-standard - 11391226087.4 17 Oct 2024 07:06PM UTC 73
81.68
GitHub Action Run
5 run-3.10-ubuntu-latest-standard - 11391226087.5 17 Oct 2024 07:06PM UTC 73
81.65
GitHub Action Run
6 run-3.11-ubuntu-latest-py311-coverage-sbck-offline-prefetch - 11391226087.6 17 Oct 2024 07:06PM UTC 73
83.53
GitHub Action Run
7 11391226087.7 17 Oct 2024 07:06PM UTC 73
81.65
GitHub Action Run
8 run-3.11-macos-latest-py311-coverage-extras - 11391226087.8 17 Oct 2024 07:06PM UTC 73
87.12
GitHub Action Run
Source Files on build 11391226087
  • Tree
  • List 73
  • Changed 71
  • Source Changed 0
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 029d85c8 on github
  • Prev Build on main (#11388708767)
  • Next Build on main (#11391821233)
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