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

Ouranosinc / xclim / 16508931188
92%

Build:
DEFAULT BRANCH: main
Ran 24 Jul 2025 10:15PM 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

24 Jul 2025 10:10PM UTC coverage: 92.31% (+0.01%) from 92.296%
16508931188

push

github

web-flow
Assume daily frequency when inferring units of a count or integral index (#2217)

<!--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 #2215
- [ ] 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?
`deffreq` is passed from the index function to `infer_sampling_units`
via `to_agg_units` when it matters.

This allows an index to define a default frequency to assume if the data
has missing steps, useful when the units depends on it, when
`op='count'` or `op='integral'`.

This way, indices that are clearly written with daily inputs in mind or
that do not make sense for other frequencies anyway can avoid failing on
data with a few missing days.

Indicators still have the data check that will fail on non-inferrable
time coordinates, and that can also be disabled.

### Does this PR introduce a breaking change?
No, what worked before still works the same. Some cases that failed
before don't fail anymore.

57 of 61 new or added lines in 6 files covered. (93.44%)

1 existing line in 1 file now uncovered.

7670 of 8309 relevant lines covered (92.31%)

8.09 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
87.53
-0.38% src/xclim/core/units.py
2
97.74
0.0% src/xclim/indices/_threshold.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.53
-0.38% src/xclim/core/units.py
Jobs
ID Job ID Ran Files Coverage
1 run-{{ matrix.python-version }}-conda - 16508931188.1 24 Jul 2025 10:18PM UTC 58
92.17
GitHub Action Run
2 run-3.11-ubuntu-latest-preliminary - 16508931188.2 24 Jul 2025 10:19PM UTC 59
88.63
GitHub Action Run
3 run-3.10-ubuntu-latest-standard - 16508931188.3 24 Jul 2025 10:19PM UTC 59
88.83
GitHub Action Run
4 run-3.11-ubuntu-latest-standard - 16508931188.4 24 Jul 2025 10:19PM UTC 59
88.93
GitHub Action Run
5 run-3.11-ubuntu-latest-py311-coverage-extras-sbck-offline-prefetch - 16508931188.5 24 Jul 2025 10:19PM UTC 59
88.8
GitHub Action Run
6 run-3.11-macos-latest-py311-coverage-extras-lmoments - 16508931188.6 24 Jul 2025 10:19PM UTC 59
92.1
GitHub Action Run
7 run-3.12-windows-latest-py312-coverage-prefetch - 16508931188.7 24 Jul 2025 10:19PM UTC 59
88.36
GitHub Action Run
8 run-3.12-ubuntu-latest-standard - 16508931188.8 24 Jul 2025 10:19PM UTC 59
88.83
GitHub Action Run
Source Files on build 16508931188
  • Tree
  • List 59
  • Changed 8
  • Source Changed 7
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2cea774f on github
  • Prev Build on main (#16419233292)
  • Next Build on main (#16601897091)
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