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

Ouranosinc / xclim / 21767596042
92%

Build:
DEFAULT BRANCH: main
Ran 06 Feb 2026 10:11PM UTC
Jobs 6
Files 60
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

06 Feb 2026 10:06PM UTC coverage: 92.0% (-0.003%) from 92.003%
21767596042

push

github

web-flow
Doymin, doymax :  nan when all the same (#2314)

<!--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
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] 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?
Rewrite of `doymin` and `doymax`. Addition of a check to put NaN when
all the values are the same.

Also, I don't know since where this is possible, but using `idxmin` is
much simpler than `argmin` with `lazy_indexing`! I think the `dt`
accessor wasn't always available with dask.

I want to remove the special treatment in snow indicators where we first
check is any value is above 0. With this new behaviour of `doymax` , the
special treatment is unnecessary for `snd_max_doy`, for example.

This PR also has the side effect of 
- allowing all-nan slices
- return a float instead of an integer

### Does this PR introduce a breaking change?
Before a slice where all values where the same would return the doy of
the first timestamp. I think this is problematic.

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

7924 of 8613 relevant lines covered (92.0%)

6.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.13-macos-latest- - 21767596042.1 06 Feb 2026 10:13PM UTC 60
91.2
GitHub Action Run
2 run-3.14-ubuntu-latest- - 21767596042.2 06 Feb 2026 10:11PM UTC 60
88.12
GitHub Action Run
3 run-3.13-ubuntu-latest- - 21767596042.3 06 Feb 2026 10:11PM UTC 60
88.12
GitHub Action Run
4 run-3.10-ubuntu-latest- - 21767596042.4 06 Feb 2026 10:11PM UTC 60
88.13
GitHub Action Run
5 run-3.12-ubuntu-latest- - 21767596042.5 06 Feb 2026 10:13PM UTC 60
88.81
GitHub Action Run
6 run-{{ matrix.python-version }}-conda - 21767596042.6 06 Feb 2026 10:14PM UTC 60
91.58
GitHub Action Run
Source Files on build 21767596042
  • Tree
  • List 60
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21767596042
  • 36b682b3 on github
  • Prev Build on main (#21442480059)
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