@@ -66,35 +66,6 @@ module RunSettings
66
66
# sys median income. `pl_current_sys` seems more correct to me, but it's unintuaitive.
67
67
@enum PovertyLineSource pl_from_settings pl_first_sys pl_current_sys
68
68
69
- function load_settings! ( settings:: Settings )
70
- settings. run_name = @load_preference ( " default_run_name" )
71
- settings. scotland_full :: Bool = true
72
- settings. weighted = @load_preference ( " use_weighting" )
73
- settings. auto_weight = @load_preference ( " auto_weight" )
74
- settings. data_dir = MODEL_DATA_DIR # DELETE
75
- settings. household_name = " model_households_scotland-2015-2021-w-enums-2"
76
- settings. people_name = " model_people_scotland-2015-2021-w-enums-2"
77
- settings. target_nation = eval (Symbol (@load_preference (" target_nation" ))) # N_Scotland
78
- settings. dump_frames = @load_preference ( " dump_frames" )
79
- # num_households = 0
80
- # num_people :: Int = 0
81
- settings. prices_file = " indexes.tab"
82
- settings. to_y = @load_preference ( " to_y" )
83
- settings. to_q = @load_preference ( " to_q" )
84
- # settings.output_dir = joinpath(tempdir(),"output")
85
- settings. means_tested_routing = eval ( Symbol (@load_preference ( " means_tested_routing" )))
86
- # settings.poverty_line = -1.0
87
- settings. poverty_line_source = eval ( Symbol (@load_preference ( " poverty_line_source" )))
88
- settings. ineq_income_measure = eval ( Symbol (@load_preference ( " ineq_income_measure" )))
89
- # settings.growth :: Real = 0.02 # for time to exit poverty
90
- settings. income_data_source = ds_frs # ds_hbai !! not used
91
- settings. do_marginal_rates = @load_preference ( " do_marginal_rates" )
92
- settings. do_replacement_rates = @load_preference ( " do_replacement_rates" )
93
- settings. replacement_rate_hours = @load_preference ( " replacement_rate_hours" )
94
-
95
-
96
- end
97
-
98
69
# @enum DatasetType actual_data synthetic_data # FIXME this duplicates `DataSource` in `.Definitions``
99
70
100
71
# settings loaded automatically from the Project.toml section 'preferences.ScottishTaxBenefitModel'
@@ -170,6 +141,33 @@ module RunSettings
170
141
skiplist = " "
171
142
end
172
143
144
+ function load_settings! ( settings:: Settings )
145
+ settings. run_name = @load_preference ( " default_run_name" )
146
+ settings. scotland_full = true
147
+ settings. weighted = @load_preference ( " use_weighting" )
148
+ settings. auto_weight = @load_preference ( " auto_weight" )
149
+ settings. data_dir = MODEL_DATA_DIR # DELETE
150
+ settings. household_name = " model_households_scotland-2015-2021-w-enums-2"
151
+ settings. people_name = " model_people_scotland-2015-2021-w-enums-2"
152
+ settings. target_nation = eval (Symbol (@load_preference (" target_nation" ))) # N_Scotland
153
+ settings. dump_frames = @load_preference ( " dump_frames" )
154
+ # num_households = 0
155
+ # num_people :: Int = 0
156
+ settings. prices_file = " indexes.tab"
157
+ settings. to_y = @load_preference ( " to_y" )
158
+ settings. to_q = @load_preference ( " to_q" )
159
+ # settings.output_dir = joinpath(tempdir(),"output")
160
+ settings. means_tested_routing = eval ( Symbol (@load_preference ( " means_tested_routing" )))
161
+ # settings.poverty_line = -1.0
162
+ settings. poverty_line_source = eval ( Symbol (@load_preference ( " poverty_line_source" )))
163
+ settings. ineq_income_measure = eval ( Symbol (@load_preference ( " ineq_income_measure" )))
164
+ # settings.growth :: Real = 0.02 # for time to exit poverty
165
+ settings. income_data_source = ds_frs # ds_hbai !! not used
166
+ settings. do_marginal_rates = @load_preference ( " do_marginal_rates" )
167
+ settings. do_replacement_rates = @load_preference ( " do_replacement_rates" )
168
+ settings. replacement_rate_hours = @load_preference ( " replacement_rate_hours" )
169
+ end
170
+
173
171
function get_data_artifact ( settings:: Settings ):: AbstractString
174
172
return if settings. data_source == FRSSource
175
173
if settings. target_nation == N_Scotland
0 commit comments