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

Ouranosinc / xscen / 11668375738
90%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2024 04:28PM UTC
Jobs 6
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

04 Nov 2024 04:24PM UTC coverage: 81.399% (-0.002%) from 81.401%
11668375738

push

github

web-flow
Choose which dimensions are reduced in `measures_improvement` (#416)

<!-- 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] 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?

* `measures_improvement` has an extra kwarg: `dim`, which allows to
control on which dimensions we compute the percentage of improvement.

### Does this PR introduce a breaking change?

Default behaviour `None` is the same as before, reduce all dimensions. I
thought it made sense to put `dim` as the first kwarg, so this is not
breaking per-se, but still somewhat semi-breaking for scripts inputting
`to_level` positionnally e.g. `measures_improvement([ds1,ds2],
to_level)`, so I can move down `dim` if it's preferrable.

There is a small breaking change: `ds1-ds2` is used instead of `ds2` to
find non-null values and compute the pct of improvement. This may result
in less non-null values. I think it's the right thing to do though.

### Other information:

My example is that I had a dataset with (rlat, rlon, period), I want
improvement percentages for each period. I realize now this is an
unconventional dataset in the xscen philosophy, I should have had
separate dataset, when using `properties_and_measure` I should have used
`period` etc etc. and have multiple catalog entries. But, for properties
using `group=time.season, time.month`, we would have an extra dimension
`season, month` that w... (continued)

11 of 12 new or added lines in 1 file covered. (91.67%)

3584 of 4403 relevant lines covered (81.4%)

4.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-Python3.11-conda - 11668375738.1 04 Nov 2024 04:30PM UTC 0
81.29
GitHub Action Run
2 run-Python3.10-conda - 11668375738.2 04 Nov 2024 04:30PM UTC 0
81.29
GitHub Action Run
3 run-Python3.11 - 11668375738.3 04 Nov 2024 04:30PM UTC 0
78.24
GitHub Action Run
4 run-Python3.10 - 11668375738.4 04 Nov 2024 04:30PM UTC 0
78.24
GitHub Action Run
5 run-Python3.12-conda - 11668375738.5 04 Nov 2024 04:30PM UTC 0
81.29
GitHub Action Run
6 run-Python3.12 - 11668375738.6 04 Nov 2024 04:30PM UTC 0
78.24
GitHub Action Run
Source Files on build 11668375738
Detailed source file information is not available for this build.
  • Back to Repo
  • fbb3c8a0 on github
  • Prev Build on main (#11667679704)
  • Next Build on main (#11668951593)
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