Commit 7b73e330 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.0.12.6 CreateCalibOptions return a warning message when all values are NA in FixedParam

Showing with 7 additions and 4 deletions
+7 -4
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.12.5
Version: 1.0.12.6
Date: 2018-08-29
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -14,7 +14,7 @@ output:
### 5 Release Notes (2018-08-29)
### 1.0.12.6 Release Notes (2018-08-29)
#### Deprectated and defunct
......@@ -28,7 +28,7 @@ output:
- <code>Calibration_Michel()</code> is now faster during the grid-screening step when a parameter is set using <code>FixedParam</code> in <code>CreateCalibOptions()</code>.
- <code>CreateCalibOptions()</code> now returns an error when all the parameters ar set in <code>FixedParam</code>.
- <code>CreateCalibOptions()</code> now returns an error when all the parameters are set and a warning message when all the parameters are not set <code>FixedParam</code> in the <code>FixedParam</code> argument.
#### Minor user-visible changes
......
......@@ -178,10 +178,13 @@ CreateCalibOptions <-
stop("Incompatibility between FixedParam length and FUN_MOD \n")
return(NULL)
}
if (!all(is.na(FixedParam))) {
if (all(!is.na(FixedParam))) {
stop("At least one parameter must be not set (NA) \n")
return(NULL)
}
if (all(is.na(FixedParam))) {
warning("You have not set any parameter in \"FixedParam\" \n")
}
}
##check_SearchRanges
......
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