Commit 0a005c7c authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.0.13.0 Ind_zeroes argument of CreateInputsCrit is deprecated

parent 7b73e330
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.12.6
Version: 1.0.13.0
Date: 2018-08-29
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -14,13 +14,15 @@ output:
### 1.0.12.6 Release Notes (2018-08-29)
### 1.0.13.0 Release Notes (2018-08-29)
#### Deprectated and defunct
- The <code>LatRad</code> argument is now deprecated in <code>PEdaily_Oudin()</code> and replaced by the <code>Lat</code> argument.
- The unused <code>Ind_zeroes</code> argument of the <code>CreateInputsCrit()</code> function is now deprecated.
#### Major user-visible changes
......
......@@ -84,22 +84,15 @@ CreateInputsCrit <- function(FUN_CRIT,
return(NULL)
}
if (!is.null(Ind_zeroes)) {
if (!is.vector(Ind_zeroes)) {
stop("Ind_zeroes must be a vector of integers \n")
return(NULL)
}
if (!is.integer(Ind_zeroes)) {
stop("Ind_zeroes must be a vector of integers \n")
return(NULL)
}
if (!missing(Ind_zeroes)) {
warning("Deprecated \"Ind_zeroes\" argument")
}
if (!is.null(epsilon)) {
if (!is.vector(epsilon) |
length(epsilon) != 1 | !is.numeric(epsilon)) {
stop("epsilon must be single numeric value \n")
return(NULL)
}
epsilon = as.double(epsilon)
}
......@@ -118,7 +111,6 @@ CreateInputsCrit <- function(FUN_CRIT,
InputsCrit <- list(BoolCrit = BoolCrit,
Qobs = Qobs,
transfo = transfo,
Ind_zeroes = Ind_zeroes,
epsilon = epsilon)
class(InputsCrit) <- c("InputsCrit", ObjectClass)
......
......@@ -27,7 +27,7 @@ CreateInputsCrit(FUN_CRIT, InputsModel, RunOptions, Qobs, BoolCrit = NULL,
\item{transfo}{(optional) [character] name of the transformation (e.g. \code{""}, \code{"sqrt"}, \code{"log"}, \code{"inv"}, \code{"sort"})}
\item{Ind_zeroes}{(optional) [numeric] indices of the time steps where zeroes are observed}
\item{Ind_zeroes}{(deprecated) [numeric] indices of the time steps where zeroes are observed}
\item{epsilon}{(optional) [numeric] epsilon to add to all Qobs and Qsim if \emph{$Ind_zeroes} is not empty}
......
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