Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Nov 30, 2023
1 parent 33c0496 commit 0f4c4e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion ogmys/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def __init__(
client=None,
num_workers=1,
):

self.estimate_tax_functions = estimate_tax_functions
self.estimate_beta = estimate_beta
self.estimate_chi_n = estimate_chi_n
Expand Down
5 changes: 2 additions & 3 deletions ogmys/income.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ def f(

# Make sure that values in abil_midp are within interpolating
# bounds
if (
abil_midp.min() < emat_j_midp.min()
or abil_midp.max() > (1- usa_params.lambdas[-1])
if abil_midp.min() < emat_j_midp.min() or abil_midp.max() > (
1 - usa_params.lambdas[-1]
):
err = (
"One or more entries in abilities vector (lambdas) is outside the "
Expand Down
4 changes: 1 addition & 3 deletions ogmys/tests/test_income.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def test_get_e_interp_exception():
Test that RuntimeError is abil_wgts not suitable for interpolation
"""
age_wgts = np.ones(80) * 1 / 80
abil_wgts = np.array(
[0.25, 0.25, 0.2, 0.1, 0.1, 0.09, 0.009999, 0.000001]
)
abil_wgts = np.array([0.25, 0.25, 0.2, 0.1, 0.1, 0.09, 0.009999, 0.000001])
with pytest.raises(RuntimeError):
income.get_e_interp(20, 80, 8, abil_wgts, age_wgts)

0 comments on commit 0f4c4e4

Please sign in to comment.