Skip to content

Commit

Permalink
more hacks for examples indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamstark committed Aug 31, 2023
1 parent d346436 commit 63c4e5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/ConsumptionData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ function uprate_expenditure( settings :: Settings )
f[sym] /= 1.05
elseif sym in DEFAULT_STANDARD_RATE
f[sym] /= 1.20
end

end
f[sym] = Uprating.uprate( f[sym], y, q, Uprating.upr_nominal_gdp )
end
end
Expand Down
4 changes: 4 additions & 0 deletions src/ExampleHouseholdGetter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ KEYMAP = Vector{AbstractString}()
FIXME FIXME FIXME
"""
function find_consumption_for_example!( hh, settings )
if size(ConsumptionData.IND_MATCHING)[1] == 0
# lazy load matching data if we need it
ConsumptionData.init(settings)
end
sv_hid = hh.hid
sv_data_year = hh.data_year
hh.hid = 1
Expand Down

0 comments on commit 63c4e5a

Please sign in to comment.