Skip to content

Commit

Permalink
settings missing in outout
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamstark committed Aug 18, 2024
1 parent 8cb68dd commit b0400dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/fixup_synth_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function fixup_relationships!( hp :: AbstractDataFrame )::Int
# is matched by a reciprocal one in the other people:
# father->child=>child<-father, partner=>partner and so on.
for j in 1:num_people
# change the other person's relationship to match this one
# change the other person's relationship to match this one, if needed.
if j != p.pno
k = Symbol( "relationship_$(j)")
relationship = Relationship(p[k]) # relationship of this person to person j
Expand Down Expand Up @@ -159,6 +159,7 @@ function fixup_relationships!( hp :: AbstractDataFrame )::Int
Other_relative
end
oper[ok] = Int( r )
end
elseif is_non_relative( relationship )
if ! is_non_relative( recip_relationship )
nfixes += 1
Expand All @@ -175,7 +176,7 @@ function fixup_relationships!( hp :: AbstractDataFrame )::Int
if ! ismissing(p[k])
p[k] = -1
end
end
end # clearout unneeded relationships
end # each person
return nfixes
end # function
Expand Down

0 comments on commit b0400dd

Please sign in to comment.