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

Ouranosinc / xclim / 14733780119
92%

Build:
DEFAULT BRANCH: main
Ran 29 Apr 2025 02:31PM UTC
Jobs 8
Files 72
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 Apr 2025 02:26PM UTC coverage: 90.009% (+0.02%) from 89.991%
14733780119

push

github

web-flow
Allow unequal periods in `infer_sampling_units` and `stack_periods`. (#2150)

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

* Allows the units "month" and "year" in the output of
`infer_sampling_units`.
* Rewrite `infer_sampling_units` to be more explicit in the errors and
safer with the defaults.

### Does this PR introduce a breaking change?
Yes, but minimal : `infer_sampling_units` would _assume_ `freq='D'`
before, which I now think is a bit weird and dangerous. It will now fail
on non-inferrable freqs instead, unless a default is passed.

### Other information:
Previously, the idea was that we would never use `pint` units that
represented unequal periods (months, years), but seeing the source issue
and thinking about it, maybe we can switch the usage responsibility to
the user instead? "month" and "year" are valid CF units, so why not
support them.

18 of 19 new or added lines in 2 files covered. (94.74%)

1 existing line in 1 file now uncovered.

9739 of 10820 relevant lines covered (90.01%)

7.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
88.37
0.36% src/xclim/core/units.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.37
0.36% src/xclim/core/units.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.12-windows-latest-py312-coverage-prefetch - 14733780119.1 29 Apr 2025 03:05PM UTC 72
82.16
GitHub Action Run
2 run-3.11-ubuntu-latest-standard - 14733780119.2 29 Apr 2025 03:05PM UTC 72
84.28
GitHub Action Run
3 run-3.11-ubuntu-latest-preliminary - 14733780119.3 29 Apr 2025 03:05PM UTC 72
82.34
GitHub Action Run
4 run-3.11-macos-latest-py311-coverage-extras-lmoments - 14733780119.4 29 Apr 2025 03:05PM UTC 72
88.2
GitHub Action Run
5 run-3.12-ubuntu-latest-standard - 14733780119.5 29 Apr 2025 03:05PM UTC 72
82.7
GitHub Action Run
6 run-3.10-ubuntu-latest-standard - 14733780119.6 29 Apr 2025 03:05PM UTC 72
82.7
GitHub Action Run
7 run-3.11-ubuntu-latest-py311-coverage-sbck-offline-prefetch - 14733780119.7 29 Apr 2025 03:05PM UTC 72
84.18
GitHub Action Run
8 run-{{ matrix.python-version }}-conda - 14733780119.8 29 Apr 2025 02:36PM UTC 71
88.21
GitHub Action Run
Source Files on build 14733780119
  • Tree
  • List 72
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e3e79036 on github
  • Prev Build on main (#14711935904)
  • Next Build on main (#14837606885)
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

© 2025 Coveralls, Inc