Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with defining entity in multiway section of .yaml #14

Open
kelseynelson opened this issue Feb 23, 2024 · 0 comments
Open

Error with defining entity in multiway section of .yaml #14

kelseynelson opened this issue Feb 23, 2024 · 0 comments

Comments

@kelseynelson
Copy link

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:

  • description: all_controls_ipu
    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:
    • variables: [age]
      filename: age.csv
      filetype: csv
      entity: person
    • variables: [sfd]
      filename: sfd.csv
      filetype: csv
      entity: household
    • variables: [rsfd]
      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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant