Skip to content

Commit

Permalink
Merge pull request #281 from jorritmesman/main
Browse files Browse the repository at this point in the history
Can use plot_LHC also when not calibrating Kw
  • Loading branch information
jorritmesman authored Apr 25, 2024
2 parents 653442d + 956eb48 commit 625e258
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: LakeEnsemblR
Type: Package
Title: Run Ensemble of Lake Models
Version: 1.2.6
Date: 2023-09-19
Version: 1.2.7
Date: 2024-04-25
URL: https://github.com/aemon-j/LakeEnsemblR
Author: Authors@R: c(person("Tadhg", "Moore", role = c("aut","cre"),
email = "tadhg.moore6@gmail.com"),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## version 1.2.7

### Changes
- bug fix of `plot_LHC` function; can be used also when not calibrating `Kw`

## version 1.2.6

### Changes
Expand Down
6 changes: 5 additions & 1 deletion R/plot_LHC.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ plot_LHC <- function(config_file, model, res_files, qual_met = "rmse", best_quan
# meteo parameter
met_pars <- names(configr_master_config[["calibration"]][["met"]])
# kw parameter
kw_pars <- "Kw"
if("Kw" %in% names(configr_master_config[["calibration"]])){
kw_pars <- "Kw"
}else{
kw_pars <- NULL
}
# get names of models for which parameter are given
model_p <- model[model %in% names(configr_master_config[["calibration"]])]
# model specific parameters
Expand Down

0 comments on commit 625e258

Please # to comment.