projects
/
talweg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
'update'
[talweg.git]
/
pkg
/
R
/
Forecaster.R
diff --git
a/pkg/R/Forecaster.R
b/pkg/R/Forecaster.R
index
2b259fc
..
784f86e
100644
(file)
--- a/
pkg/R/Forecaster.R
+++ b/
pkg/R/Forecaster.R
@@
-59,6
+59,10
@@
Forecaster = R6::R6Class("Forecaster",
{
# Parameters (potentially) computed during shape prediction stage
predicted_shape <- self$predictShape(data,today,memory,predict_from,horizon,...)
+
+ if (is.na(predicted_shape))
+ return (NA)
+
predicted_delta <-
if (is.null(private$.pjump))
NULL