Skip to content

Commit a367744

Browse files
committed
more synth data
1 parent 92c8ee3 commit a367744

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/ModelHousehold.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,15 @@ function allocate_to_bus( T::Type, hh_head_pid :: BigInt, bua :: BUAllocation )
479479
@assert buno == 1 "head needs to be 1st BU $hh_head_pid"
480480
head_pid = person.pid
481481
push!( adults, head_pid )
482+
elseif person.is_benefit_unit_head
483+
head_pid = person.pid
484+
push!( adults, head_pid )
482485
elseif (p == 1) && (buno > 1)
483486
head_pid = person.pid
484487
push!( adults, head_pid )
485488
else
486489
# println( "on bu $i person $p relationships $(person.relationships)")
487-
@assert head_pid > 0 "head pid must be allocated; buno=$buno"
490+
@assert head_pid > 0 "head pid must be allocated; buno=$buno person $(person.pid) relationships $(person.relationships)"
488491
hp = (buno == 1) ? hh_head_pid : head_pid
489492
reltohead = person.relationships[hp]
490493
if reltohead in [Spouse,Cohabitee,Civil_Partner]

src/legal_aid_parameters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function get_default_incomes( systype :: SystemType )::IncludedItems
176176
else
177177
setdiff!( incs.included, DISREGARDED_BENEFITS_AA )
178178
end
179-
@show incs.included
179+
# @show incs.included
180180
incs
181181
end
182182

0 commit comments

Comments
 (0)