Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl committed Feb 4, 2024
1 parent 1ef7542 commit bf40c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synthesis/population/sampled.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def execute(context):
# create index to replicate all households members by their household weight
# the order ([0, 1, 0, 1, 2, 2, ...]) is important here as they will be reassigned to new housholds later with that assumption
expandor = np.split(np.arange(len(df_census)), np.cumsum(household_sizes))
expandor = [x for x in expandor if x.size > 0]
# expandor = [x for x in expandor if x.size > 0] # sh: not sure why this was needed
expandor = np.repeat(expandor, household_multiplicators, axis=0)
expandor = list(itertools.chain(*expandor))

Expand Down

0 comments on commit bf40c09

Please sign in to comment.