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

hydrologie / xhydro / 16946115354
92%

Build:
DEFAULT BRANCH: main
Ran 13 Aug 2025 06:41PM UTC
Jobs 4
Files 33
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

13 Aug 2025 06:33PM UTC coverage: 93.029% (+0.3%) from 92.778%
16946115354

push

github

web-flow
Methods to update existing RavenpyModel  (#341)

<!-- 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 changes affect the GIS, Raven Modelling, Extremes.jl or Use
Case Example notebooks, they have been re-run (ReadTheDocs will not
update these).
- [x] If text has changed, ``make initialize-translations`` /
``make-translations.bat`` has been run and translations have been
updated.
- [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?

* All model characteristics are now stored as attributes.
* A new class function, `update_data`, can be used to update the
observed streamflow, HRU characteristics and meteorological data
correctly.
* The code that was in `create_rv` has been moved to smaller
self-contained functions to update `.qobs`, `.hru`, `.meteo`.
* A new class function `update_config` can now be used to update some
simpler options directly in the `.rv*` files, such as the start and end
dates, the meteorological files, or the subbasins to output.
* An `executable` argument has been added to the `.run()` function to
bypass the Raven version of the active Python environment.

### Does this PR introduce a breaking change?

* It should not. The PR looks scary, but it's mostly because `create_rv`
has been split into multiple smaller functions. Most arguments have been
removed from `create_rv`, but it should still be fully
backwards-compatible.


### Other information:

298 of 307 new or added lines in 1 file covered. (97.07%)

2869 of 3084 relevant lines covered (93.03%)

4.11 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
97.51
-0.74% src/xhydro/modelling/_ravenpy_models.py
Jobs
ID Job ID Ran Files Coverage
1 run-Python3.10-conda - 16946115354.1 13 Aug 2025 07:48PM UTC 33
83.11
GitHub Action Run
2 run-Python3.11-conda - 16946115354.2 13 Aug 2025 07:48PM UTC 33
83.11
GitHub Action Run
3 run-Python3.12 - 16946115354.3 13 Aug 2025 07:48PM UTC 33
68.77
GitHub Action Run
4 run-Python3.12-conda - 16946115354.4 13 Aug 2025 07:48PM UTC 33
92.93
GitHub Action Run
Source Files on build 16946115354
  • Tree
  • List 33
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 40942e55 on github
  • Prev Build on main (#16814913056)
  • Next Build on main (#16970031157)
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