From b2ffbf642832328545d982a25e6608ca75cc0a91 Mon Sep 17 00:00:00 2001 From: Graham Stark Date: Thu, 31 Aug 2023 13:28:00 +0100 Subject: [PATCH] quick hack for examples indirect --- src/ExampleHouseholdGetter.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ExampleHouseholdGetter.jl b/src/ExampleHouseholdGetter.jl index 2d1b3bbb..b8c5a9e7 100644 --- a/src/ExampleHouseholdGetter.jl +++ b/src/ExampleHouseholdGetter.jl @@ -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 @@ -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