Skip to content

Commit 351ee31

Browse files
author
Alexey Stukalov
committed
fixup test/construct
1 parent a8c2a34 commit 351ee31

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

test/examples/political_democracy/constructor.jl

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,8 @@ end
167167
# set seed for simulation
168168
Random.seed!(83472834)
169169
# simulate data
170-
model_ml_new = replace_observed(
171-
model_ml,
172-
rand(model_ml, params, 1_000_000),
173-
)
174-
model_ml_sym_new = replace_observed(
175-
model_ml_sym,
176-
rand(model_ml_sym, params, 1_000_000),
177-
)
170+
model_ml_new = replace_observed(model_ml, rand(model_ml, params, 1_000_000))
171+
model_ml_sym_new = replace_observed(model_ml_sym, rand(model_ml_sym, params, 1_000_000))
178172
# fit models
179173
sol_ml = solution(fit(semoptimizer, model_ml_new))
180174
sol_ml_sym = solution(fit(semoptimizer, model_ml_sym_new))
@@ -376,14 +370,8 @@ end
376370
# set seed for simulation
377371
Random.seed!(83472834)
378372
# simulate data
379-
model_ml_new = replace_observed(
380-
model_ml,
381-
rand(model_ml, params, 1_000_000),
382-
)
383-
model_ml_sym_new = replace_observed(
384-
model_ml_sym,
385-
rand(model_ml_sym, params, 1_000_000),
386-
)
373+
model_ml_new = replace_observed(model_ml, rand(model_ml, params, 1_000_000))
374+
model_ml_sym_new = replace_observed(model_ml_sym, rand(model_ml_sym, params, 1_000_000))
387375
# fit models
388376
sol_ml = solution(fit(semoptimizer, model_ml_new))
389377
sol_ml_sym = solution(fit(semoptimizer, model_ml_sym_new))

0 commit comments

Comments
 (0)