washingtonpost / elex-live-model

a model to generate estimates of the number of outstanding votes on an election night based on the current results of the race
48 stars 5 forks source link

no longer throws an error #83

Closed lennybronner closed 1 year ago

lennybronner commented 1 year ago

Description

I realized that this was throwing an error:

elexmodel 2019-11-05_VA_G --office_id=Y --estimands=dem --geographic_unit_type=county-district --pi_method=nonparametric --percent_reporting=20

because district was not in the unexpected data since that needs district to be an aggregate and if we didn't pass an aggregate into cli it was defaulting to postal_code only. So now we no longer default to postal_code but instead pass in no aggregate to the model from the cli in that case.

Jira Ticket

Test Steps

The above command should now work, also tox