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

hydrologie / xhydro / 13865518722
92%

Build:
DEFAULT BRANCH: main
Ran 14 Mar 2025 09:24PM 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

14 Mar 2025 09:17PM UTC coverage: 93.467% (-0.4%) from 93.869%
13865518722

push

github

web-flow
Add a Use Case example and fix kernel crashes (#268)

<!-- 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 #265 
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [x] (If applicable) Tests have been added.
- [ ] CHANGELOG.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?

* Add a use case example.
* Changes how observations are managed when using the calibration module
and RavenPy models.

### Does this PR introduce a breaking change?

* `qobs` and `qobs_path` have been completely removed from the
`RavenpyModel` class, since it was never used, but likely created issues
in some systems by both opening the NetCDF file and asking `rapenpy` to
also do the same.
* Instead, `qobs` has been moved to `perform_calibration`, which is the
more logical place.
* I could see an argument to keep `qobs` as an optional input to more
easily compute objective functions, if we add that function to the
classes: `model.get_objective_function("kge", time=slice("1991",
"2020"))` or something like that.


### Other information:

* Ideally this would have been 2 PRs, but I kinda had to fix the issue
for my Notebook to run...

* I tried to be as accurate as possible with the example, so the
Notebook is way too heavy to be run by RtD. This will have to be updated
manually from time to time.

4 of 16 new or added lines in 2 files covered. (25.0%)

1 existing line in 1 file now uncovered.

2418 of 2587 relevant lines covered (93.47%)

3.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
99.17
0.0% src/xhydro/modelling/obj_funcs.py
11
82.05
-11.98% src/xhydro/modelling/calibration.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.87
-2.13% src/xhydro/modelling/_ravenpy_models.py
Jobs
ID Job ID Ran Files Coverage
1 run-Python3.10-conda - 13865518722.1 14 Mar 2025 09:32PM UTC 34
81.68
GitHub Action Run
2 run-Python3.12-conda - 13865518722.2 14 Mar 2025 09:32PM UTC 34
93.47
GitHub Action Run
3 run-Python3.11-conda - 13865518722.3 14 Mar 2025 09:32PM UTC 34
81.68
GitHub Action Run
Source Files on build 13865518722
  • Tree
  • List 34
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 16c69093 on github
  • Prev Build on main (#13708924164)
  • Next Build on main (#14092288601)
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