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

Recipe check utility #73

Open
frproulx opened this issue Apr 5, 2021 · 0 comments
Open

Recipe check utility #73

frproulx opened this issue Apr 5, 2021 · 0 comments

Comments

@frproulx
Copy link

frproulx commented Apr 5, 2021

In developing my own recipe to synthesize a population using ACS and PUMS, I ran into the below error:

 raise RuntimeError( 
     'There is a mismatch between the constraints and the total ' 
     'number of households to draw. The total to draw appears ' 
     'to be higher than indicated by the constraints.') 

The ultimate cause was found to be a typo in my recipe, where one field that was to be mapped between the two datasets had a value typed incorrectly. As a result, the above error arose in some block groups when this particular value arose in the marginal distribution.

Proposing developing a utility for checking recipes before they are run through the synthesizer. This could check for:

  • Field name mapping consistency
  • Field value mapping consistency
  • Presence and correct structure of required methods (e.g., get_household_marginal_for_geography).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants