Commit c6d21f38 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.2.13.9 CLEAN: minor revision of messages in Calibration_Michel

Showing with 7 additions and 7 deletions
+7 -7
Package: airGR Package: airGR
Type: Package Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.2.13.8 Version: 1.2.13.9
Date: 2019-04-02 Date: 2019-04-03
Authors@R: c( Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")), person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@irstea.fr"), person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@irstea.fr"),
......
...@@ -13,7 +13,7 @@ output: ...@@ -13,7 +13,7 @@ output:
### 1.2.13.8 Release Notes (2019-04-02) ### 1.2.13.9 Release Notes (2019-04-03)
......
...@@ -258,7 +258,7 @@ Calibration_Michel <- function(InputsModel, ...@@ -258,7 +258,7 @@ Calibration_Michel <- function(InputsModel,
if (Ncandidates == 1) { if (Ncandidates == 1) {
message("\t Starting point for steepest-descent local search:") message("\t Starting point for steepest-descent local search:")
} }
message("\t Param = ", paste(sprintf("%8.3f", ParamStartR), collapse = " , ")) message("\t Param = ", paste(sprintf("%8.3f", ParamStartR), collapse = ", "))
message(sprintf("\t Crit. %-12s = %.4f", CritName, CritStart * Multiplier)) message(sprintf("\t Crit. %-12s = %.4f", CritName, CritStart * Multiplier))
} }
##Results_archiving________________________________________________________ ##Results_archiving________________________________________________________
...@@ -472,8 +472,8 @@ Calibration_Michel <- function(InputsModel, ...@@ -472,8 +472,8 @@ Calibration_Michel <- function(InputsModel,
NIter <- 1 + ITER NIter <- 1 + ITER
if (verbose) { if (verbose) {
message(sprintf("\t Calibration completed (%s iterations, %s runs)", NIter, NRuns)) message(sprintf("\t Calibration completed (%s iterations, %s runs)", NIter, NRuns))
message("\t Param = ", paste(sprintf("%8.3f", ParamFinalR), collapse = " , ")) message("\t Param = ", paste(sprintf("%8.3f", ParamFinalR), collapse = ", "))
message(sprintf("\t Crit. %-12s = %.4f", CritName, CritFinal * Multiplier), "\n") message(sprintf("\t Crit. %-12s = %.4f", CritName, CritFinal * Multiplier))
if (inherits(InputsCrit, "Compo")) { if (inherits(InputsCrit, "Compo")) {
listweights <- OutputsCrit$CritCompo$MultiCritWeights listweights <- OutputsCrit$CritCompo$MultiCritWeights
listNameCrit <- OutputsCrit$CritCompo$MultiCritNames listNameCrit <- OutputsCrit$CritCompo$MultiCritNames
...@@ -482,7 +482,7 @@ Calibration_Michel <- function(InputsModel, ...@@ -482,7 +482,7 @@ Calibration_Michel <- function(InputsModel,
msgFormSep <- rep(c(",", ",", ",\n\t\t "), times = ceiling(length(msgForm)/3))[1: length(msgForm)] msgFormSep <- rep(c(",", ",", ",\n\t\t "), times = ceiling(length(msgForm)/3))[1: length(msgForm)]
msgForm <- paste(msgForm, msgFormSep, sep = "", collapse = "") msgForm <- paste(msgForm, msgFormSep, sep = "", collapse = "")
msgForm <- gsub("\\,\\\n\\\t\\\t $|\\,$", "", msgForm) msgForm <- gsub("\\,\\\n\\\t\\\t $|\\,$", "", msgForm)
message("\tFormula: sum(", msgForm, ")\n") message("\tFormula: sum(", msgForm, ")")
} }
} }
##Results_archiving_______________________________________________________ ##Results_archiving_______________________________________________________
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment