PolicyEngine / openfisca-tools

Python tools for enhancing OpenFisca country packages.
1 stars 1 forks source link

`sum_of_variables` doesn't work with variables at different aggregate entity levels #49

Closed MaxGhenis closed 2 years ago

MaxGhenis commented 2 years ago

See this notebook, where I'm trying to add a tax-unit-level variable (gi21) and add it to spm_unit_benefits by adding it to the sum_of_variables.

When running calc after doing this, I get an error:

ValueError: You tried to compute the variable 'gi21' for the entity 'people'; however the variable 'gi21' is defined for 'tax_units'.

nikhilwoodruff commented 2 years ago

This is fixed now, right? The notebook runs for me.