Skip to content

Commit

Permalink
Additional logic revision; fix too long a line
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Nov 7, 2024
1 parent 52460b3 commit 4bdaef3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions taxcalc/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,8 @@ def mtr(self, variable_str='e00200p',
self.policy_param('FICA_ss_trt_employee') +
self.policy_param('FICA_mc_trt_employer') +
self.policy_param('FICA_mc_trt_employee')),
0.5 * (self.policy_param('FICA_mc_trt_employer') + self.policy_param('FICA_mc_trt_employee')))
0.5 * (self.policy_param('FICA_mc_trt_employer') +
self.policy_param('FICA_mc_trt_employee')))
else:
adj = 0.0
# compute marginal tax rates
Expand Down Expand Up @@ -1189,9 +1190,11 @@ def lines(text, num_indent_spaces, max_line_length=77):
for pname in baseline.keys():
upda_value = getattr(updated, pname)
base_value = getattr(baseline, pname)
isarray = isinstance(upda_value, np.ndarray)
if ((isarray and not np.allclose(upda_value, base_value))
or (not is_array and upda_value != base_value)):
is_array = isinstance(upda_value, np.ndarray)
if (
(is_array and not np.allclose(upda_value, base_value))
or (is_array == False and upda_value != base_value)
):
params_with_diff.append(pname)
if params_with_diff:
mdata_base = baseline.specification(meta_data=True)
Expand Down

0 comments on commit 4bdaef3

Please sign in to comment.