Skip to content

Commit

Permalink
Cosmetic change to taxcalcio.py code
Browse files Browse the repository at this point in the history
Co-authored-by: jdebacker <no-reply>
  • Loading branch information
martinholmer committed Dec 18, 2024
1 parent 433e352 commit 43464dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions taxcalc/taxcalcio.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,21 @@ def init(self, input_data, tax_year, baseline, reform, assump,
if tax_year > max_tax_year:
msg = f'TAXYEAR={tax_year} is greater than {max_tax_year}'
self.errmsg += f'ERROR: {msg}\n'
min_tax_year = Policy.JSON_START_YEAR
if self.puf_input_data:
min_tax_year = max( # pragma: no cover
Policy.JSON_START_YEAR, Records.PUFCSV_YEAR)
if self.cps_input_data:
elif self.cps_input_data:
min_tax_year = max(
Policy.JSON_START_YEAR, Records.CPSCSV_YEAR)
if self.tmd_input_data:
elif self.tmd_input_data:
min_tax_year = max( # pragma: no cover
Policy.JSON_START_YEAR, Records.TMDCSV_YEAR)
else:
min_tax_year = Policy.JSON_START_YEAR
if tax_year < min_tax_year:
msg = f'TAXYEAR={tax_year} is less than {min_tax_year}'
self.errmsg += f'ERROR: {msg}\n'
# tax_year out of range means cannot proceed with calculations
# tax_year out of valid range means cannot proceed with calculations
if self.errmsg:
return
# get policy parameter dictionary from --baseline file
Expand Down

0 comments on commit 43464dd

Please sign in to comment.