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

Ouranosinc / xclim / 13374599908
92%

Build:
DEFAULT BRANCH: main
Ran 17 Feb 2025 04:25PM UTC
Jobs 8
Files 72
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 Feb 2025 04:20PM UTC coverage: 89.934% (-0.03%) from 89.968%
13374599908

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.

60 of 64 new or added lines in 2 files covered. (93.75%)

4 existing lines in 2 files now uncovered.

9604 of 10679 relevant lines covered (89.93%)

7.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
92.36
-0.02% src/xclim/core/calendar.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.97
-0.14% src/xclim/core/indicator.py
3
75.09
-1.13% src/xclim/testing/utils.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.10-ubuntu-latest-preliminary - 13374599908.1 17 Feb 2025 04:30PM UTC 72
82.41
GitHub Action Run
2 run-3.11-macos-latest-py311-coverage-extras - 13374599908.2 17 Feb 2025 04:30PM UTC 72
88.02
GitHub Action Run
3 run-3.12-ubuntu-latest-standard - 13374599908.3 17 Feb 2025 04:30PM UTC 72
82.7
GitHub Action Run
4 run-3.10-windows-latest-py310-coverage-prefetch - 13374599908.4 17 Feb 2025 04:30PM UTC 72
82.16
GitHub Action Run
5 run-3.10-ubuntu-latest-standard - 13374599908.5 17 Feb 2025 04:30PM UTC 72
82.41
GitHub Action Run
6 run-3.11-ubuntu-latest-py311-coverage-sbck-offline-prefetch - 13374599908.6 17 Feb 2025 04:30PM UTC 72
84.2
GitHub Action Run
7 run-{{ matrix.python-version }}-conda - 13374599908.7 17 Feb 2025 04:30PM UTC 72
88.11
GitHub Action Run
8 run-3.11-ubuntu-latest-standard - 13374599908.8 17 Feb 2025 04:30PM UTC 72
84.23
GitHub Action Run
Source Files on build 13374599908
  • Tree
  • List 72
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7cec9a4a on github
  • Prev Build on main (#13372514347)
  • Next Build on main (#13376622539)
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

© 2025 Coveralls, Inc