Skip to content

Commit

Permalink
quick hack for examples indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamstark committed Aug 31, 2023
1 parent 66780ee commit b2ffbf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ExampleHouseholdGetter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ function find_consumption_for_example!( hh, settings )
sv_data_year = hh.data_year
hh.hid = 1
hh.data_year = 2021
if settings.indirect_method == matching
find_consumption_for_hh!( hh, settings, 1 )
end
find_consumption_for_hh!( hh, settings, 1 )
hh.hid = sv_hid
hh.data_year = sv_data_year
end
Expand Down Expand Up @@ -59,7 +57,9 @@ function initialise(
println( "loading $(hhf.name) $(hhf.council)")
hh = load_hhld_from_frame(
hseq, hhf, people_dataset, ExampleSource, settings )
find_consumption_for_example!( hh, settings )
if settings.indirect_method == matching
find_consumption_for_example!( hh, settings )
end
EXAMPLE_HOUSEHOLDS[hhf.name] = hh
println( EXAMPLE_HOUSEHOLDS[hhf.name].council )
end
Expand Down

0 comments on commit b2ffbf6

Please sign in to comment.