2222
2323CODE = """data {
2424 int<lower=0> N;
25- int<lower=0,upper=1> y[N] ;
25+ array[N] int<lower=0, upper=1> y;
2626}
2727parameters {
28- real<lower=0,upper=1> theta;
28+ real<lower=0, upper=1> theta;
2929}
3030model {
31- theta ~ beta(1,1); // uniform prior on interval 0,1
31+ theta ~ beta(1, 1); // uniform prior on interval 0,1
3232 y ~ bernoulli(theta);
3333}
3434"""
@@ -218,7 +218,6 @@ def test_compile_force(self):
218218 self .assertTrue (os .path .exists (model .exe_file ))
219219
220220 info_dict = model .exe_info ()
221- print (f'info={ info_dict } ' )
222221 self .assertEqual (info_dict ['STAN_THREADS' ].lower (), 'false' )
223222
224223 more_opts = {'STAN_THREADS' : 'TRUE' }
@@ -228,7 +227,6 @@ def test_compile_force(self):
228227 self .assertTrue (os .path .exists (model .exe_file ))
229228
230229 info_dict2 = model .exe_info ()
231- print (f'info2={ info_dict2 } ' )
232230 self .assertEqual (info_dict2 ['STAN_THREADS' ].lower (), 'true' )
233231
234232 override_opts = {'STAN_NO_RANGE_CHECKS' : 'TRUE' }
@@ -237,7 +235,6 @@ def test_compile_force(self):
237235 force = True , cpp_options = override_opts , override_options = True
238236 )
239237 info_dict3 = model .exe_info ()
240- print (f'info3={ info_dict3 } ' )
241238 self .assertEqual (info_dict3 ['STAN_THREADS' ].lower (), 'false' )
242239 # cmdstan#1056
243240 # self.assertEqual(info_dict3['STAN_NO_RANGE_CHECKS'].lower(), 'true')
0 commit comments