Skip to content

Commit c4f212d

Browse files
committed
Add local statements to avoid warnings
1 parent 184aa02 commit c4f212d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/textbook_nk/example_textbook_nk.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ solve!(m; algorithm = algorithm, autodiff = autodiff_method)
2929
@test m.Ψ out["Psi"]
3030

3131
if test_price_dispersion
32-
@info "Checking that price dispersion is always above 1."
3332
π̃_ss_vec = log.(range(1 - .005, stop = 1 + .005, length = 10)) # On annualized basis, range from -2% to 2% target inflation
3433
det_soln = Dict()
3534
sss_soln = Vector{RiskAdjustedLinearization}(undef, length(π̃_ss_vec))
3635

3736
for (i, π̃_ss) in enumerate(π̃_ss_vec)
38-
m_nk = TextbookNK(; π̃_ss = π̃_ss)
39-
m = textbook_nk(m_nk)
37+
local m_nk = TextbookNK(; π̃_ss = π̃_ss)
38+
local m = textbook_nk(m_nk)
4039
solve!(m; algorithm = :deterministic, verbose = :none)
4140
det_soln[i] = Dict()
4241
det_soln[i][:z] = copy(m.z)

0 commit comments

Comments
 (0)