-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting SALT deduction to zero #171
base: main
Are you sure you want to change the base?
Conversation
How does this compare to the taxsim approach? |
i do not have that idea, today we have a call with dan, will share this with him that is this approach works for him. |
# Conflicts: # output/policyengine_taxsim_household_with_dependent_output.csv # output/policyengine_taxsim_household_with_dependent_single_parent_output.csv # output/policyengine_taxsim_joint_household_output.csv # output/policyengine_taxsim_single_household_output.csv
# Conflicts: # policyengine_taxsim/cli.py
Need to see whether we should also disable state level salt deductions to match TaxAct - my intuition is yes but confirming with Dan |
@@ -316,13 +320,17 @@ def export_household(taxsim_input, policyengine_situation, logs): | |||
|
|||
def simulate(simulation, variable, year): | |||
try: | |||
if disable_salt_variable: | |||
simulation.set_input(variable_name='salt_deduction', value=0.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simulation.set_input(variable_name='salt_deduction', value=0.0) | |
simulation.set_input(variable_name='state_and_local_sales_or_income_tax', value=0.0) |
@@ -5,6 +5,7 @@ | |||
from policyengine_us import Simulation | |||
from policyengine_tests_generator.core.generator import PETestsYAMLGenerator | |||
|
|||
disable_salt_variable = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable_salt_variable = False | |
set_state_and_local_sales_or_income_tax_to_zero = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more descriptive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and other variables
@@ -21,7 +21,8 @@ | |||
help="Output file path", | |||
) | |||
@click.option('--logs', is_flag=True, help='Generate PE YAML Tests Logs') | |||
def main(input_file, output, logs): | |||
@click.option('--disable-salt', is_flag=True, default=False, help='Set Salt Deduction to 0.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@click.option('--disable-salt', is_flag=True, default=False, help='Set Salt Deduction to 0.0') | |
@click.option('--disable-salt', is_flag=True, default=False, help='Set the State and Local Income Tax to 0.0') |
set
salt_deduction
0.0 from cli argumentpython policyengine_taxsim\cli.py input.csv --disable-salt
Fixes #160