Prepare addition/replacement of p-model example data#322
Conversation
This uses the interface and data format of the target data.frame as used in the rsofun_doc repository. TODO: next steps are - to make this backward compatible with the old input format and arguments, if possible. - - do this by replacing the examples and tests of calib_sofun() with calib_sofun_parallelized() across the package - - and eventually replace the files in data/*.rda - to remove traces of the VJ target - also use get_mod_obs_pmodel_bigD13C_vj_gpp() for predictive plot (time series) in the vignettes.
Since we update the data format, this keeps the "_oldformat" around for development. During development we want: - to replace occurrences of "_oldformat" to the new format - keep around "_oldformat" to ensure backward compatible functions.
…l..' This is to replace the `..._oldformat_...` in upcoming commits.
This is done by removing `onestep` simulations from the new data set and explicitly treating multiple sites when plotting.
* runread_pmodel() had a bug for onestep. Now fixed. * Also includes changes to tests to remove warnings.
This reduces code duplication (parallel and non-parallel versions) and makes pmap more robust by using named arguments instead of relying on positional arguments.
… svg)" This reverts commit 37519c3.
…n level of cost functions.
This also updates `cost_likelihood_pmodel()` and`cost_rmse_pmodel()`
…d replace with new cost_likelihood_pmodel1 => cost_likelihood_pmodel_legacy cost_likelihood_pmodel2 => cost_likelihood_pmodel
|
Great work! |
|
Yes, the macOS test is currently failing probably due to some network issue installing an unrelated package |
|
Okay, I did now: I hope this does not bite me for the merge of phydro. (But I think I could separately do the same in the phydro branch to reduce potential issues.) |
library(styler); styler::style_pkg(style = styler::tidyverse_style, strict=FALSE)
|
I don't think this will bite you as phydro mainly has new developments at the Fortran level, which is left untouched by styler. |
…ings_runMCMC This should help to make code clearer and easier to distinguish between these two settings. And this also add renames `sampler` to `sampler_runMCMC` for consistency. This is fully backwards compatible because of partial name matching for argument names (settings_calibrate) and for list element names (settings_runMCMC, sampler_runMCMC). Nevertheless, for settings_calibrate we still included a warning about deprecated use.
n_chains_independent => nrChains n_parallel_independent => n_parallel_nrChains
fabern
left a comment
There was a problem hiding this comment.
Self-review done. This can be merged!
This reverts commit 448e0e6.
…-gmd-paper" This reverts commit 4849557.
|
This has been reverted in the The So this can remain closed. |
This PR
NEWS.md. briefly,runread_pmodelfor both daily and onestep simulation by using a columnonestep==TRUE/FALSEin theparams_simlof thepmodel_drivers. This replaces the use ofrun_pmodel_onestep_f_bysite()by the end user.pmodel_driversandpmodel_validationto reduce potential bugs (also previous data sets were renamed top_model_oldformat_driversandp_model_oldformat_validationand will soon be entirely removed from the package)createMixedPrior()Note that, for simplicity, we could have similarly updated the
biomee_validationdata.frame to a similar format. Note that the driversbiomee_[xxx]_driversdoes not need an update (since there is no onestep function forbiomee).For the moment it was decided against updating
biomee_validation(in case we want to do later, see code in commit c10f8cc). But such an approach will likely be needed for future multi-target calibrations of BiomeE.For a summary of changes have a look at
NEWS.md