From 4e077076a69872783540b86f25f1acfc88dae0ff Mon Sep 17 00:00:00 2001 From: unknown <olivier.delaigue@ANPI1430.antony.irstea.priv> Date: Tue, 5 Sep 2017 11:05:51 +0200 Subject: [PATCH] v1.0.9.36 fixed the generation of warning msg about the length of Qobs in plot.OutputsModel --- DESCRIPTION | 2 +- R/plot.OutputsModel.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7a4d3b57..a9513878 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: airGR Type: Package Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling -Version: 1.0.9.35 +Version: 1.0.9.36 Date: 2017-09-05 Authors@R: c( person("Laurent", "Coron", role = c("aut", "trl")), diff --git a/R/plot.OutputsModel.R b/R/plot.OutputsModel.R index 6249041f..0b93be48 100644 --- a/R/plot.OutputsModel.R +++ b/R/plot.OutputsModel.R @@ -20,7 +20,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = if (sum(is.na(Qobs)) != length(Qobs)) { BOOL_Qobs <- TRUE } - } else { + } else if (inherits(OutputsModel, "GR")) { warning("Incorrect length of Qobs. Time series of observed flow not drawn.") } BOOL_Snow <- FALSE; -- GitLab