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

Ouranosinc / xclim / 6563257718
90%
main: 92%

Build:
Build:
LAST BUILD BRANCH: eco-ci-project
DEFAULT BRANCH: main
Ran 18 Oct 2023 03:45PM UTC
Jobs 2
Files 70
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

18 Oct 2023 03:38PM UTC coverage: 90.384% (-0.04%) from 90.422%
6563257718

push

github

web-flow
Adapt freq in training (#1407)

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

* Frequency adaptation should sometimes be performed in the same step as
training so that adapted grouped block are preserved for the training
step. This PR allows this by invoking frequency adaptation directly in
training functions.
* nbstripout in pre-commit now removes the metadata.kernelspec
completely, which are annoying differences that come up when editing
notebooks with different software (I think). This might be a problem if
we want to mix different cell codes, e.g. python and R in a single
notebook. If our use case one day evolves towards this, we can revisit
this aspect.

### Does this PR introduce a breaking change?

Yes. The adaptation "in-training" is simply a new feature. But the
adaptation "out-of-training" (or "modular" approach), akin to the old
procedure, will also yield different results. This is because a
multi-dimensional rank is now used in "_processing.py".

### Other information:
I explain the motivation behind this PR (which is also explained below).

Using multi-dimensional rank changes the "out-of-training" adaptation
(which already is "more" in lined with the expected scientific
computation). But these results are "more" in-line with the scientific
computation expected. I say "more" in-line because if you really want
the e... (continued)

27 of 31 new or added lines in 3 files covered. (87.1%)

1 existing line in 1 file now uncovered.

8431 of 9328 relevant lines covered (90.38%)

4.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-{{ matrix.tox-env }} - 6563257718.1 18 Oct 2023 03:50PM UTC 0
90.38
2 run-{{ matrix.tox-env }}-opt-slow - 6563257718.2 18 Oct 2023 03:50PM UTC 0
89.92
Source Files on build 6563257718
Detailed source file information is not available for this build.
  • Back to Repo
  • 316566a7 on github
  • Prev Build on master (#6539834386)
  • Next Build on master (#6565053785)
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