Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

noman404
Copy link
Collaborator

@noman404 noman404 commented Jan 2, 2025

set salt_deduction 0.0 from cli argument

python policyengine_taxsim\cli.py input.csv --disable-salt

Fixes #160

@MaxGhenis
Copy link
Contributor

How does this compare to the taxsim approach?

@noman404
Copy link
Collaborator Author

noman404 commented Jan 2, 2025

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
@PavelMakarchuk
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
disable_salt_variable = False
set_state_and_local_sales_or_income_tax_to_zero = False

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more descriptive

Copy link
Collaborator

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')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting SALT deduction to zero
3 participants