Closed nikhilwoodruff closed 2 years ago
@MaxGhenis switched as discussed to an index_
helper function, how does this look? On the SLSPC issue in openfisca-us, the usage looks like:
...
eligible = person.tax_unit("is_ptc_eligible", period)
per_person_cost = index_(
parameter=slspc,
indices=[state, area, age_code],
where=eligible,
)
return tax_unit.sum(per_person_cost)
Fixes #57