Skip to content

Conversation

@fabern
Copy link
Member

@fabern fabern commented Sep 19, 2024

This is the discussion thread for planning the merge of the phydro branch into the main model.

TODO before the merge:

  • publish rsofun documentation paper as is

TODO for the merge:

  • fix phydro: le is not equal to aet #220
  • fix phydro issues #218
  • calibration: reduce redundancies in cost-functions and streamline two methods of 'GenSA' or 'BayesianTools'
  • update rsofun::p_model_drivers with readRDS(file = here::here("data/p_model_drivers_newformat.rds")), as well as rsofun::p_model_drivers_vcmax25
    • recompute forcing, forcing_24h, forcing_daytime, forcing_3hrmax for the drivers
  • switch handling of whc from a params_modl to a site parameter
    • e.g. in runread_pmodel_f.R that sends the multi-site data.frame to individual simualtions?
    • or alternatively remove it form par: here in R, here in C and here in F90.
  • include "regression tests" into the test suites to detect alteration of results, e.g. extend current test by verifying results remain similar
  • design and document a robust, user-friendly interface for the different model flags
  • ...

Other suggestions:

  • reduce interface complexity:
    • does run_pmodel_f_bysite() need to be an exported (and documented) function? Or will it anyway always be called from runread_pmodel_f, and we can thus keep it internal (and undocumented)?
    • remove argument parallel form the runread_pmodel_f() and runread_biomee_f() functions since it is equivalent with setting ncores = 1
    • ...

@fabern fabern mentioned this pull request Feb 28, 2025
stineb and others added 25 commits March 2, 2025 15:15
Previous commit (34b6531) added 'vwind' to forcing,
to respect the testing with continuous integration this should have included updating of the
- vignettes/*.Rmd
- tests/testthat/*.R
- and documentation

Points 1 and 2 can be tested locally with devtools::build_vignettes() and with devtools::test()
Ideally, this should be enforced by CI also on branches.
Previous commit (34b6531) added 'vwind' to forcing,
to respect the testing with continuous integration this should have included updating of the
- data/*.rda

This is now done in hindsight.
Previous commit (b6ab2d4) modified model output by multiplying surface conductance by a factor of two.
This change in model output must be reflected by updating the reference values in the regression tests.
Ideally this would be done in the same commit that alters the model structure to have a clear record of which commit changes model behavior in what way.

This is now done in hindsight.
Phydro: make test pass (except for 1 (issue #289)) and updated documentation, vignettes and example data sets due to changes in:
- input parameters (vwind)
- model computation (factor x2 surface conductance)
* update

* update

* update

* Homogenize whitespace

* Revert removal of data files

* Update tests, vignette, and documentation for gw change

Previous commits introduced a new input parameter gw_calib.

To respect the testing with continuous integration any change should include updating of the
- vignettes/*.Rmd
- tests/testthat/*.R
- and documentation
- data/*.rda

Ideally this would be done in the same commit as the change to the model itself.

Note that steps 1 and 2 can be tested locally with devtools::build_vignettes() and with devtools::test()

* Fix phydro bug by requiring `gw_calib`

* Use single Makevars as in branches 'main' and 'luluc'

* Remove daily and night rad output

* Remove daily and night rad output from tests

* Reduce whitespace changes by this PR

* Add gw_calib also to vignettes

* Fix gw_calib in examples of documentation

* Include gw_calib in sensitivity analysis

---------

Co-authored-by: Fabian Bernhard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

phydro issues phydro: le is not equal to aet

6 participants