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

Ouranosinc / xclim / 11388708767
92%

Build:
DEFAULT BRANCH: main
Ran 17 Oct 2024 04:07PM 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 04:02PM UTC coverage: 89.381% (+0.02%) from 89.357%
11388708767

push

github

web-flow
Support freq="W" in standardized indices (#1952)

<!--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:
- [ ] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #xyz
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [ ] CHANGELOG.rst has been updated (with summary of main changes)
- [ ] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added

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

* Add support for weekly standardized indices

### Does this PR introduce a breaking change?

No

### Other information:

I realize that xclim and climate_indices treat zero-inflated
distributions differently. I will investigate which library does it
correctly and include changes if needed

EDIT: I believe `xclim` has the correct implementation. The probability
of zeroes should be determined in the fitting procedure, not by using
the full dataset. The idea is when you compute a CDF, a zero value
should be mapped to the `prob_of_zero` in the calibration period. That
is the same logic as using the fitting params of the distribution in the
calibration period to compute the CDF in the full dataset.

I confirmed this is also how it's done in the case of the R package
(SPEI), although I find some steps a bit weird, but I'm not too familiar
with R.

8 of 8 new or added lines in 2 files covered. (100.0%)

9368 of 10481 relevant lines covered (89.38%)

7.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.12-ubuntu-latest-standard - 11388708767.1 17 Oct 2024 04:16PM UTC 73
81.67
GitHub Action Run
2 run-3.11-macos-latest-py311-coverage-extras - 11388708767.2 17 Oct 2024 04:16PM UTC 73
87.13
GitHub Action Run
3 run-{{ matrix.python-version }}-conda - 11388708767.3 17 Oct 2024 04:16PM UTC 73
87.26
GitHub Action Run
4 11388708767.4 17 Oct 2024 04:16PM UTC 73
81.64
GitHub Action Run
5 run-3.10-ubuntu-latest-standard - 11388708767.5 17 Oct 2024 04:16PM UTC 73
81.64
GitHub Action Run
6 run-3.10-windows-latest-py310-coverage-prefetch - 11388708767.6 17 Oct 2024 04:16PM UTC 73
81.48
GitHub Action Run
7 run-3.11-ubuntu-latest-py311-coverage-sbck-offline-prefetch - 11388708767.7 17 Oct 2024 04:16PM UTC 73
83.52
GitHub Action Run
8 run-3.11-ubuntu-latest-standard - 11388708767.8 17 Oct 2024 04:16PM UTC 73
83.55
GitHub Action Run
Source Files on build 11388708767
  • Tree
  • List 73
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 70cbb365 on github
  • Prev Build on main (#11387045798)
  • Next Build on main (#11391226087)
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