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

Ouranosinc / xscen / 8297358398
90%

Build:
DEFAULT BRANCH: main
Ran 15 Mar 2024 02:01PM UTC
Jobs 8
Files 19
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

15 Mar 2024 01:58PM UTC coverage: 68.794% (+0.03%) from 68.769%
8297358398

push

github

web-flow
Use sdba options for xclim by default (#363)

<!-- 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
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [ ] (If applicable) Tests have been added.
- [x] This PR does not seem to break the templates.
- [ ] CHANGES.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?
Instead of setting the options only when calling xclim's `adjust`, we
set the options globally at import time.

This fixes the subtle issue noted in Ouranosinc/xclim#1674 : the context
options are not seen by all code when dask-backed data is used. as the
actual computation occurs outside of the context.

It also allows to change these options at run time.
`xc.set_options(sdba_encode_cf=False)` will fix #362, for example. This
was not possible earlier as the option context was within the function
and couldn't be modified by the user.

### Does this PR introduce a breaking change?
Yes, issue #362 will now occur on dask arrays too, until xclim's PR is
merged. But it can be circumvented as shown above.

1 of 3 new or added lines in 1 file covered. (33.33%)

2760 of 4012 relevant lines covered (68.79%)

5.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-Python3.12-conda - 8297358398.1 15 Mar 2024 02:03PM UTC 0
68.65
2 run-Python3.11-conda - 8297358398.2 15 Mar 2024 02:03PM UTC 0
68.65
3 run-Python3.10-conda - 8297358398.3 15 Mar 2024 02:03PM UTC 0
68.65
4 run-Python3.9-conda - 8297358398.4 15 Mar 2024 02:03PM UTC 0
68.61
5 run-Python3.10 - 8297358398.5 15 Mar 2024 02:03PM UTC 0
66.14
6 run-Python3.9 - 8297358398.6 15 Mar 2024 02:03PM UTC 0
66.08
7 run-Python3.11 - 8297358398.7 15 Mar 2024 02:03PM UTC 0
66.14
8 run-Python3.12 - 8297358398.8 15 Mar 2024 02:03PM UTC 0
66.14
Source Files on build 8297358398
Detailed source file information is not available for this build.
  • Back to Repo
  • c2261fb3 on github
  • Prev Build on main (#8234378931)
  • Next Build on main (#8299132047)
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