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

Ouranosinc / xclim
92%

Build:
DEFAULT BRANCH: main
Repo Added 13 Sep 2018 03:39PM UTC
Files 60
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • HS_eve
  • SSI_SGI
  • add-vapour-pressure-deficit
  • add_general_part
  • add_missing
  • address-precision
  • adjust-auto-accept
  • adjust-yaml-test
  • adopt-ruff-format
  • allow-mocking
  • allsame-doy-nan
  • antecedent-precipitation-indicator
  • assume-daily-for-units
  • auto-accept-dependabot-ci
  • avoid-unnecessary-time-resampling
  • better-energy-stats
  • check_matching_times
  • ci-adjustments
  • clean-units
  • cli-warnings-engine
  • consistent-naming
  • convert-hurs-humidex
  • datatree-support
  • datetime-fixes
  • dependabot/github_actions/actions-008b153589
  • dependabot/github_actions/actions-013eabdef2
  • dependabot/github_actions/actions-01eb27b622
  • dependabot/github_actions/actions-039db0b2bc
  • dependabot/github_actions/actions-06ae9f9a40
  • dependabot/github_actions/actions-15e6f89b60
  • dependabot/github_actions/actions-1fb17b9afa
  • dependabot/github_actions/actions-39b0f4103c
  • dependabot/github_actions/actions-3ecfc2d9d1
  • dependabot/github_actions/actions-455df580f8
  • dependabot/github_actions/actions-461db7b400
  • dependabot/github_actions/actions-4c2e4dba1c
  • dependabot/github_actions/actions-5841e98833
  • dependabot/github_actions/actions-5c0850a894
  • dependabot/github_actions/actions-61ed329749
  • dependabot/github_actions/actions-644aa13a87
  • dependabot/github_actions/actions-66839892d2
  • dependabot/github_actions/actions-67a10efecd
  • dependabot/github_actions/actions-7236c8f22c
  • dependabot/github_actions/actions-7837a71296
  • dependabot/github_actions/actions-807e141772
  • dependabot/github_actions/actions-8412de4f2d
  • dependabot/github_actions/actions-885f5fa5a7
  • dependabot/github_actions/actions-88ce3606f7
  • dependabot/github_actions/actions-8a9de90a89
  • dependabot/github_actions/actions-8cb9a9667d
  • dependabot/github_actions/actions-90c1ca45e1
  • dependabot/github_actions/actions-b9c13a7af7
  • dependabot/github_actions/actions-bd1284decb
  • dependabot/github_actions/actions-c5043b94ad
  • dependabot/github_actions/actions-cce7c41234
  • dependabot/github_actions/actions-e569d89199
  • dependabot/github_actions/actions-e84dc08d5a
  • dependabot/github_actions/actions-ebe99d2749
  • dependabot/github_actions/actions-fb9b48e85b
  • dependabot/github_actions/actions-fd64dd94eb
  • dependabot/pip/CI/bump-my-version-1.2.6
  • dependabot/pip/CI/deptry-0.24.0
  • dependabot/pip/CI/exceptiongroup-1.3.1
  • dependabot/pip/CI/pip-25.3
  • dependabot/pip/CI/pip-8177a8837a
  • dependabot/pip/CI/pip-a6aa50acab
  • dependabot/pip/CI/pip-c4ff2e68b4
  • dependabot/pip/CI/pip-c55f158233
  • dependabot/pip/CI/pylint-4.0.4
  • dependabot/pip/CI/tomli-2.3.0
  • dependabot/pip/CI/tox-4.33.0
  • dependabot/pip/python-2040a6291e
  • dependabot/pip/python-2ea8ebdaef
  • dependabot/pip/python-350a0f59bc
  • dependabot/pip/python-3830f05ce5
  • dependabot/pip/python-3b6482bb29
  • dependabot/pip/python-4f703d6ade
  • dependabot/pip/python-5ab2ad6ea2
  • dependabot/pip/python-5ad8018256
  • dependabot/pip/python-861e731bcf
  • dependabot/pip/python-9d4d47bb59
  • dependabot/pip/python-9e0f745a7f
  • dependabot/pip/python-a5b369cbea
  • dependabot/pip/python-cd1223907b
  • dependabot/pip/python-d8eef1601a
  • dependabot/pip/python-e7cd2fa4e5
  • dependabot/pip/python-f8b8e00329
  • dependency-groups
  • deprecate-python310
  • deprecate-sdba
  • deprecate_heat_wave_index
  • deprecations
  • dev-v099
  • dynamic-time-selection
  • ensemble-calendar
  • expose_rolling_resample
  • fair-adoption
  • fao_allen
  • festive-indices
  • fit-mse
  • fitkwargs_lmoments
  • fix-#2014
  • fix-#2235
  • fix-2056-1763
  • fix-2146
  • fix-2148
  • fix-Grouper-360
  • fix-argmin-func
  • fix-bui
  • fix-cdda
  • fix-ci
  • fix-custom-missing-doc
  • fix-docs
  • fix-doctests
  • fix-documentation
  • fix-fire-season-unequal-chunks
  • fix-history
  • fix-hurs-nan
  • fix-jones-hi
  • fix-keepattrs-xr
  • fix-math-tags
  • fix-multi-dim-find-events
  • fix-pint-0.25
  • fix-prsn-dims
  • fix-robust-nodata
  • fix-token
  • fix-xclim-info-cli
  • fix/solar-zenith-time-cast
  • fix_keep_longest_run
  • fix_sdba_doc
  • fraction_of_rtop
  • hemisphere_thresh
  • improved-dd-calculations
  • interp-esat
  • isocalendar-fix
  • literal_str_operators
  • mahalanobis
  • main
  • missing-in-robust
  • numpydoc
  • pin-pandas
  • pmp
  • positive-utah
  • pre-commit-ci-update-config
  • prep_v0.55.1
  • prepare-v0540
  • prepare-v0550
  • prepare-v0560
  • prepare-v0570
  • prepare-v0580
  • prepare-v0581
  • prepare-v0590
  • prepare-v0591
  • prepare-v060
  • preserve-attrs
  • pylint-adjustments
  • pytest-v9
  • reenable-py310
  • refactor_converters
  • remove-black
  • remove-useless-noqas
  • revert-star-annotation
  • rolling-ind-indexing
  • rst-linting
  • season_length_from_bnds
  • secure-workflows
  • security-fixes
  • sg_fix_linalg_proper
  • simpler-version-check
  • skip-nl-langinfo-test
  • split_sdba
  • support-py314
  • support-python313
  • timeout
  • to_agg_units_temp_diff
  • tox-toml
  • unpin-scipy
  • upd-hurs-again
  • use-py313-CI
  • use-src
  • util_VARS
  • winner-winner

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

Relevant lines Covered
Build:
Build:
8613 RELEVANT LINES 7924 COVERED LINES
6.28 HITS PER LINE
Source Files on main
  • Tree
  • List 60
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
21767596042 main 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 addre... push 06 Feb 2026 10:11PM UTC web-flow github
92.0
21767229782 allsame-doy-nan Merge 282613b8d into c2e2f1114 Pull #2314 06 Feb 2026 09:58PM UTC web-flow github
92.0
21726163544 dev-v099 Merge branch 'main' into dev-v099 Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> push 05 Feb 2026 07:56PM UTC web-flow github
92.01
21725543416 dev-v099 [new xclim] Adopt PEP-735 (Dependency groups) (#2316) ### What kind of change does this PR introduce? * Splits the `lint` dependencies into a `dependency-group` in `pyproject.toml`. * Adjusts the Makefile to silently install linting dependencies... push 05 Feb 2026 07:36PM UTC web-flow github
92.01
21720603674 dependency-groups Merge 5e33b76fe into 3810f4a03 Pull #2316 05 Feb 2026 04:59PM UTC web-flow github
91.98
21690254034 dependency-groups Merge 2afe8fa3c into 3810f4a03 Pull #2316 04 Feb 2026 10:10PM UTC web-flow github
91.98
21679363096 dependency-groups Merge 2566d4b74 into 3810f4a03 Pull #2316 04 Feb 2026 04:26PM UTC web-flow github
92.01
21442480059 main Replace xclim.core.utils.VARIABLES with xclim.core.VARIABLES (#2318) ### What kind of change does this PR introduce? Fix inaccuracy in error and warning messages. ### Does this PR introduce a breaking change? No ### Other information: Clarifica... push 28 Jan 2026 02:42PM UTC web-flow github
92.0
21404109277 util_VARS Merge 68b170f6b into 56b667045 Pull #2318 28 Jan 2026 02:29PM UTC web-flow github
91.97
21401902803 util_VARS Merge 9287dfa0c into 56b667045 Pull #2318 27 Jan 2026 03:43PM UTC web-flow github
92.0
See All Builds (4933)
  • Repo on GitHub
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