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

hydrologie / xhydro / 13685183489
92%

Build:
DEFAULT BRANCH: main
Ran 05 Mar 2025 08:50PM UTC
Jobs 3
Files 34
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

05 Mar 2025 08:44PM UTC coverage: 93.89% (+0.008%) from 93.882%
13685183489

push

github

web-flow
Major refactoring of sampled_indicators (#240)

<!-- 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
- [x] (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?

* Turns out that `sampled_indicators` was too memory-inefficient for
bigger applications and could quickly grow to 10s or even 100s of Gb of
RAM. Thus, the function has been split in two to allow for writing the
results of the sampling on disk and offload some of the RAM usage. No
miracle can be done, but this should be slightly better.
* The default number of iterations was reduced from 50,000 to 5000.
* Uniform weights are now only added to extra dimensions specifically
named in `include_dims`, instead of being automatic. The dimensions
`time` and `horizon` are still never sampled.
* `_weighted_sampling` was almost completely rewritten to hopefully make
better use of chunks and multithreading through `dask`.

### Does this PR introduce a breaking change?

- Yes. While this does not affect the numerical results themselves, this
is an almost complete refactoring of `sampled_indicators`, from the
inputs required to the outputs produced.


### Other information:

66 of 67 new or added lines in 1 file covered. (98.51%)

2428 of 2586 relevant lines covered (93.89%)

3.4 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
99.28
-0.72% src/xhydro/cc.py
Jobs
ID Job ID Ran Files Coverage
1 run-Python3.10-conda - 13685183489.1 05 Mar 2025 08:59PM UTC 34
82.1
GitHub Action Run
2 run-Python3.12-conda - 13685183489.2 05 Mar 2025 08:59PM UTC 34
93.89
GitHub Action Run
3 run-Python3.11-conda - 13685183489.3 05 Mar 2025 08:59PM UTC 34
82.1
GitHub Action Run
Source Files on build 13685183489
  • Tree
  • List 34
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a7504afd on github
  • Prev Build on main (#13634434616)
  • Next Build on main (#13704278425)
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

© 2025 Coveralls, Inc