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

Ouranosinc / xclim / 13374599908 / 1
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 17 Feb 2025 04:30PM UTC
Files 72
Run time 3s
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 Feb 2025 04:20PM UTC coverage: 82.414% (-0.01%) from 82.425%
13374599908.1

push

github

web-flow
Dynamic time selection (#2055)

### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #1987
- [x] 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?
The PR improves the `select_time` function providing the possibility to
select time based on `xr.DataArray` of days of year.
- Move `_get_doys` outside `select_time`
- Create `mask_between_doys` function
- Edit `select_time` to work with the new workflow to select time with
doys

### Other information:
I've run pytest but I had an error (ERROR
tests/test_sdba/test_adjustment.py::TestLoci::test_reduce_dims) and a
failed (FAILED tests/test_modules.py::test_encoding - AttributeError:
module '_locale' has no attribute 'nl_langinfo') but I don't know how to
fix this.

8801 of 10679 relevant lines covered (82.41%)

0.82 hits per line

Source Files on job run-3.10-ubuntu-latest-preliminary - 13374599908.1
  • Tree
  • List 72
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13374599908
  • 7cec9a4a on github
  • Prev Job for on main (#13372514347.4)
  • Next Job for on main (#13376622539.6)
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