You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like my synthetic population is being generated, but I get an error with a keyword of whatever I define my entity as in the multiway portion of the .yaml, which stops output files from being generated. Running the example file works just fine but for some reason mine gets stuck:
File "C:\Users\Admin\anaconda3\envs\kelsey\lib\site-packages\pandas\indexes\multi.py", line 626, in get_value
raise e1
KeyError: 'person'
Here is the .yaml I'm using (it's pretty bare bones because I was trying to find the source of the problem)
It looks like my synthetic population is being generated, but I get an error with a keyword of whatever I define my entity as in the multiway portion of the .yaml, which stops output files from being generated. Running the example file works just fine but for some reason mine gets stuck:
File "C:\Users\Admin\anaconda3\envs\kelsey\lib\site-packages\pandas\indexes\multi.py", line 626, in get_value
raise e1
KeyError: 'person'
Here is the .yaml I'm using (it's pretty bare bones because I was trying to find the source of the problem)
project:
name: 5302
location: ./Downloads/popgen-2.0.b2/tutorials/1_basic_popgen_setup
inputs:
entities: [household, person]
housing_entities: [household]
person_entities: [person]
column_names:
hid: hid
pid: pid
geo: geo
region: region
sample_geo: sample_geo
location:
geo_corr_mapping:
geo_to_sample: geo_sample_mapping.csv
region_to_sample: region_sample_mapping.csv
region_to_geo: region_geo_mapping.csv
sample:
household: household_sample.csv
person: person_sample.csv
marginals:
region:
household: region_household_marginals.csv
person: region_person_marginals.csv
geo:
household: household_marginals.csv
person: person_marginals.csv
scenario:
control_variables:
region:
household: [rsfd]
person: []
geo:
household: [sfd]
person: [age]
parameters:
ipf:
tolerance: 0.0001
iterations: 250
zero_marginal_correction: 0.00001
rounding_procedure: bucket
archive_performance_frequency: 1
reweighting:
procedure: ipu
tolerance: 0.0001
inner_iterations: 1
outer_iterations: 1000
archive_performance_frequency: 1
draws:
pvalue_tolerance: 0.9999
iterations: 25
seed: 0
geos_to_synthesize:
region:
ids: [5302]
outputs:
performance: [ipf, reweighting, drawing]
weights:
export: True
collate_across_geos: False
multiway:
filename: age.csv
filetype: csv
entity: person
filename: sfd.csv
filetype: csv
entity: household
filename: rsfd.csv
filetype: csv
entity: household
summary:
region:
filename: summary_region.csv
filetype: csv
geo:
filename: summary_geo.csv
filetype: csv
synthetic_population:
housing:
filename: housing_synthetic.csv
filetype: csv
person:
filename: person_synthetic.csv
filetype: csv
Thanks!
The text was updated successfully, but these errors were encountered: