From a38aaa38c6ff102a14391e38e282f1e34941094a Mon Sep 17 00:00:00 2001 From: bl Date: Wed, 30 May 2018 14:23:37 -0700 Subject: [PATCH] Stan fix for pystan 2.16 --- R/inst/stan/prophet.stan | 2 +- python/stan/unix/prophet.stan | 2 +- python/stan/win/prophet.stan | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/inst/stan/prophet.stan b/R/inst/stan/prophet.stan index 922c960..7394840 100644 --- a/R/inst/stan/prophet.stan +++ b/R/inst/stan/prophet.stan @@ -14,7 +14,7 @@ functions { for (i in 1:T) { while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) { a_row[cp_idx] = 1; - cp_idx += 1; + cp_idx = cp_idx + 1; } A[i] = a_row; } diff --git a/python/stan/unix/prophet.stan b/python/stan/unix/prophet.stan index 922c960..7394840 100644 --- a/python/stan/unix/prophet.stan +++ b/python/stan/unix/prophet.stan @@ -14,7 +14,7 @@ functions { for (i in 1:T) { while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) { a_row[cp_idx] = 1; - cp_idx += 1; + cp_idx = cp_idx + 1; } A[i] = a_row; } diff --git a/python/stan/win/prophet.stan b/python/stan/win/prophet.stan index 83dbf96..5501ea8 100644 --- a/python/stan/win/prophet.stan +++ b/python/stan/win/prophet.stan @@ -14,7 +14,7 @@ functions { for (i in 1:T) { while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) { a_row[cp_idx] = 1; - cp_idx += 1; + cp_idx = cp_idx + 1; } A[i] = a_row; }