Commit 266bb26c authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.0.13.10 warning in CreateInputsCrit when Qobs = 0 and epsilon = NULL

parent f7323d49
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.13.9
Version: 1.0.13.10
Date: 2018-08-31
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -14,7 +14,7 @@ output:
### 1.0.13.8 Release Notes (2018-08-31)
### 1.0.13.10 Release Notes (2018-08-31)
#### Deprectated and defunct
......@@ -34,6 +34,8 @@ output:
- <code>CreateInputsCrit()</code> now returns an error when <code>epsilon</code is not positive.
- <code>CreateInputsCrit()</code> now returns a warning message if the era zeroes values in <code>Qobs<$code> and <code>epsilon = NULL</code>.
#### Minor user-visible changes
......
......@@ -93,7 +93,8 @@ CreateInputsCrit <- function(FUN_CRIT,
stop("epsilon must a be single positive value \n")
return(NULL)
}
epsilon = as.double(epsilon)
} else if (transfo %in% c("log", "inv") & any(Qobs %in% 0) & verbose) {
warning("zeroes detected in Qobs: the corresponding time-steps will be exclude by the 'ErrorCrit*' functions if the epsilon agrument = NULL")
}
if (transfo == "log" & verbose) {
......
Markdown is supported
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