Skip to content

Commit

Permalink
fixing is_ptc_eligible
Browse files Browse the repository at this point in the history
  • Loading branch information
coltleese17 committed Jul 28, 2024
1 parent 3976b40 commit e92e74f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
from fiscalsim_us.model_api import *


class is_ptc_eligible(Variable):
value_type = bool
entity = TaxUnit
Expand All @@ -15,4 +15,9 @@ def formula(tax_unit, period, parameters):
on_marketplace = (
add(tax_unit, period, ["has_marketplace_health_coverage"]) > 0
)
return on_marketplace & eligibility.calc(income_level)
income_eligible = eligibility.calc(income_level)

on_marketplace = np.array(on_marketplace, dtype=bool)
income_eligible = np.array(income_eligible, dtype=bool)

return on_marketplace & income_eligible

0 comments on commit e92e74f

Please sign in to comment.