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

v1.2.11.17 CLEAN: blank line removed in ErrorCrit

Showing with 2 additions and 3 deletions
+2 -3
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.11.16 Version: 1.2.11.17
Date: 2019-03-27 Date: 2019-03-27
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")),
......
...@@ -13,7 +13,7 @@ output: ...@@ -13,7 +13,7 @@ output:
### 1.2.11.16 Release Notes (2019-03-27) ### 1.2.11.17 Release Notes (2019-03-27)
......
...@@ -41,7 +41,6 @@ ErrorCrit <- function(InputsCrit, OutputsModel, FUN_CRIT, warnings = TRUE, verbo ...@@ -41,7 +41,6 @@ ErrorCrit <- function(InputsCrit, OutputsModel, FUN_CRIT, warnings = TRUE, verbo
listweights <- unlist(lapply(InputsCrit, function(x) x[["weights"]])) listweights <- unlist(lapply(InputsCrit, function(x) x[["weights"]]))
listweights <- listweights / sum(listweights) listweights <- listweights / sum(listweights)
if (inherits(InputsCrit, "Compo")) { if (inherits(InputsCrit, "Compo")) {
CritValue <- sum(listValCrit * listweights) CritValue <- sum(listValCrit * listweights)
OutputsCritCompo <- list(MultiCritValues = listValCrit, OutputsCritCompo <- list(MultiCritValues = listValCrit,
......
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