'update'
[talweg.git] / pkg / R / Forecaster.R
index 2b259fc..784f86e 100644 (file)
@@ -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