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

Ouranosinc / xscen / 7476441632
90%

Build:
DEFAULT BRANCH: main
Ran 10 Jan 2024 02:37PM UTC
Jobs 6
Files 19
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

10 Jan 2024 02:34PM UTC coverage: 64.658% (+1.3%) from 63.31%
7476441632

push

github

web-flow
add get_partition_input (#289)

<!-- 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] This PR does not seem to break the templates.
- [x] HISTORY.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?

* Add `xs.ensembles.get_partition_input` to prepare data from catalog to
be passed to xclim partionning functions
(https://xclim.readthedocs.io/en/stable/api.html#uncertainty-partitioning)
* Now, I am wondering if it would be more xscen to also wrap the xclim
fonction instead only prepping the data? This would allow to add a attrs
`processing_level= partition` to be able to put it in a a catalog.
workflow 1: `xs.get_partition_input` -> `xc.ensembles.lafferty_sriver`
-> `fg.partition`
workflow 2: `xs.partition` (which gets the input and wraps xclim) ->
maybe save to disk and catalog -> `fg.partition` or other plots (maybe
maps of one component)
EDIT: I went with workflow 1

### Does this PR introduce a breaking change?
no

### Other information:
* I wasn't sure if this should be in `extract.py` (because we extract
from a cat) or in `ensembles.py` ( to match the xclim module).
* companion de https://github.com/Ouranosinc/xclim/pull/1529 et
https://github.com/Ouranosinc/figanos/pull/134

2554 of 3950 relevant lines covered (64.66%)

3.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-Python3.10-conda - 7476441632.1 10 Jan 2024 02:38PM UTC 0
64.64
2 run-Python3.9-conda - 7476441632.2 10 Jan 2024 02:38PM UTC 0
64.59
3 run-Python3.11-conda - 7476441632.3 10 Jan 2024 02:38PM UTC 0
64.64
4 run-Python3.9 - 7476441632.4 10 Jan 2024 02:38PM UTC 0
64.59
5 run-Python3.10 - 7476441632.5 10 Jan 2024 02:38PM UTC 0
64.64
6 run-Python3.11 - 7476441632.6 10 Jan 2024 02:38PM UTC 0
64.64
Source Files on build 7476441632
Detailed source file information is not available for this build.
  • Back to Repo
  • fca28169 on github
  • Prev Build on main (#7397993490)
  • Next Build on main (#7507373857)
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