Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Oct 27, 2023
1 parent 8e0deae commit fba4859
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 3 additions & 5 deletions iot/inverse_optimal_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from statsmodels.nonparametric.kernel_regression import KernelReg
from scipy.interpolate import UnivariateSpline


class IOT:
"""
Constructor for the IOT class.
Expand Down Expand Up @@ -68,7 +69,7 @@ def __init__(
# assume that eti can't go beyond 1 (or the max of the eti_values provided)
eti_spl = UnivariateSpline(
eti["knot_points"], eti["eti_values"], k=1, s=0
)
)
self.eti = eti_spl(self.z)
# compute marginal tax rate schedule
self.mtr, self.mtr_prime = self.compute_mtr_dist(
Expand Down Expand Up @@ -259,10 +260,7 @@ def sw_weights(self):
g_z = (
1
+ ((self.theta_z * self.eti * self.mtr) / (1 - self.mtr))
+ (
(self.eti * self.z * self.mtr_prime)
/ (1 - self.mtr) ** 2
)
+ ((self.eti * self.z * self.mtr_prime) / (1 - self.mtr) ** 2)
)
# use Lockwood and Weinzierl formula, which should be equivalent but using numerical differentiation
bracket_term = (
Expand Down
5 changes: 1 addition & 4 deletions iot/iot_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,7 @@ def JJZFig4(self, policy="Current Law"):
g2 = (
0
+ ((0 * self.iot[k].eti * df.mtr) / (1 - df.mtr))
+ (
(self.iot[k].eti * df.z * df.mtr_prime)
/ (1 - df.mtr) ** 2
)
+ ((self.iot[k].eti * df.z * df.mtr_prime) / (1 - df.mtr) ** 2)
)
plot_df = pd.DataFrame(
{
Expand Down

0 comments on commit fba4859

Please sign in to comment.