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
{{ message }}
Repository navigation
Country metadata describes the new UK firm entity as a person #4338
policyengine-core flags any root population with no members as is_person. policyengine-uk's new firm entity (PolicyEngine/policyengine-uk#2940) is one, so build_entities in policyengine_api/country.py would describe firm with is_person: true in /uk/metadata.
app-v2 would then offer firm inputs as person variables, and calculating would fail with household_variable_wrong_entity.
Proposed fix: describe only the system's person entity (the first core entity flagged is_person, matching core's person_entity rule) as a person, compared by key so cloned systems still work. The v2 catalog's "exactly one person entity" check in data/v2/catalog/extraction.py is correct as is; it is fixed upstream by PolicyEngine/policyengine.py#764.
Activity