Skip to content

Commit e92e74f

Browse files
committed
fixing is_ptc_eligible
1 parent 3976b40 commit e92e74f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

fiscalsim_us/variables/gov/irs/credits/premium_tax_credit/is_ptc_eligible.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import numpy as np
12
from fiscalsim_us.model_api import *
23

3-
44
class is_ptc_eligible(Variable):
55
value_type = bool
66
entity = TaxUnit
@@ -15,4 +15,9 @@ def formula(tax_unit, period, parameters):
1515
on_marketplace = (
1616
add(tax_unit, period, ["has_marketplace_health_coverage"]) > 0
1717
)
18-
return on_marketplace & eligibility.calc(income_level)
18+
income_eligible = eligibility.calc(income_level)
19+
20+
on_marketplace = np.array(on_marketplace, dtype=bool)
21+
income_eligible = np.array(income_eligible, dtype=bool)
22+
23+
return on_marketplace & income_eligible

0 commit comments

Comments
 (0)