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

Ouranosinc / xsdba / 13576717294
79%

Build:
DEFAULT BRANCH: main
Ran 27 Feb 2025 10:07PM UTC
Jobs 6
Files 21
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

27 Feb 2025 10:01PM UTC coverage: 73.683% (-0.3%) from 73.97%
13576717294

push

github

web-flow
MBCn with 5days-OddWindow (#79)

<!-- 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] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [x] (If applicable) Tests have been added.
- [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?

* Small workaround to be able to use the 5 day grouping in MBCn,
compatible with odd windows.

### Does this PR introduce a breaking change?

No

### Other information:

This doesn't respect the logic of `Grouper`, but to activate this
functionality, I pass a `Grouper("5D", window=7)`. I think only time,
time.season, time.month, time.dayofyear would be allowed as strings in a
proper implementation ("The usual grouping name as xarray understands
it. Ex: "time.month" or "time".") To allow more complex group, I guess
we would need to accept Pandas object or something.

Since MBCn doesn't currently use map_groups, implementing this hack was
relatively easy.

This is also thought specifically for a 365-day calendar, that 5 is a
factor of 365 (5*73).

2 of 14 new or added lines in 3 files covered. (14.29%)

2 existing lines in 1 file now uncovered.

2405 of 3264 relevant lines covered (73.68%)

4.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
73.91
-0.1% src/xsdba/base.py
11
78.66
-3.8% src/xsdba/processing.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
58.24
-0.23% src/xsdba/_adjustment.py
Jobs
ID Job ID Ran Files Coverage
1 run-Python3.12-conda - 13576717294.1 27 Feb 2025 10:08PM UTC 21
73.68
GitHub Action Run
2 run-Python3.10-conda - 13576717294.2 27 Feb 2025 10:08PM UTC 21
73.68
GitHub Action Run
3 run-3.12 - 13576717294.3 27 Feb 2025 10:08PM UTC 21
73.68
GitHub Action Run
4 run-Python3.11-conda - 13576717294.4 27 Feb 2025 10:08PM UTC 21
73.68
GitHub Action Run
5 run-3.11 - 13576717294.5 27 Feb 2025 10:08PM UTC 21
73.68
GitHub Action Run
6 run-3.10 - 13576717294.6 27 Feb 2025 10:08PM UTC 21
73.68
GitHub Action Run
Source Files on build 13576717294
  • Tree
  • List 21
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 36bed8de on github
  • Prev Build on main (#13503465757)
  • Next Build on main (#13595332322)
  • Delete
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