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

Ouranosinc / xsdba / 15741065418
78%

Build:
DEFAULT BRANCH: main
Ran 18 Jun 2025 06:50PM UTC
Jobs 7
Files 23
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

18 Jun 2025 06:46PM UTC coverage: 77.715% (+0.01%) from 77.705%
15741065418

push

github

web-flow
Clip bounds additive space (#165)

<!-- 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:
- [x] 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).
- [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?

* Additive_space defines `lower_bound` and possible `upper_bound`.
`data` should be $low < data < high$, else infinities arise. It
sometimes happens we have $low \leq data \leq high$ (e.g. hurs at
exactly 100%). For convenience, to_additive_space can now transform
$data \in [low, high] \to ]low, high[$ by adding/subtracting the
smallest float32 increments. If `data < low | data > high` this throws
an error if we try this procedure. We don't want the clipping to put
problems under the rug

### Does this PR introduce a breaking change?

No

### Other information:

@juliettelavoie I think it makes sense to have this directly in xsdba.
Here, I don't specify any clipping bounds, I think it's better to just
use whatever {lower,upper}_bound are given

In this way, xscen could simply set `clip_to_bounds = True` in the
arguments of `to_additive_space`

5 of 6 new or added lines in 1 file covered. (83.33%)

2734 of 3518 relevant lines covered (77.71%)

5.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.28
0.0% src/xsdba/processing.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.10 - 15741065418.1 18 Jun 2025 06:52PM UTC 23
75.33
GitHub Action Run
2 run-Python3.11-conda - 15741065418.2 18 Jun 2025 06:51PM UTC 23
77.66
GitHub Action Run
3 run-3.11 - 15741065418.3 18 Jun 2025 06:52PM UTC 23
77.66
GitHub Action Run
4 run-Python3.13-conda - 15741065418.4 18 Jun 2025 06:51PM UTC 23
75.33
GitHub Action Run
5 run-Python3.10-conda - 15741065418.5 18 Jun 2025 06:50PM UTC 23
75.16
GitHub Action Run
6 run-Python3.12-conda - 15741065418.6 18 Jun 2025 06:50PM UTC 23
75.33
GitHub Action Run
7 run-3.12 - 15741065418.7 18 Jun 2025 06:52PM UTC 23
75.16
GitHub Action Run
Source Files on build 15741065418
  • Tree
  • List 23
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15741065418
  • 57fc5698 on github
  • Prev Build on main (#15642479807)
  • Next Build on main (#15741230647)
  • 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