Skip to content

Commit

Permalink
cache all variables
Browse files Browse the repository at this point in the history
  • Loading branch information
donboyd5 committed Nov 5, 2024
1 parent d5601b0 commit bacbdc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tmd/create_taxcalc_cached_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def create_cached_files():
calc = tc.Calculator(policy=pol, records=rec)
calc.advance_to_year(TAX_YEAR)
calc.calc_all()

# cache all variables to aid in areas examination
calc.dataframe(variable_list=None, all_vars=True).to_csv(STORAGE_FOLDER / "output" / "cached_allvars.csv", index=None)

# write each variable in CACHED_TAXCALC_VARIABLES list to a binary file
for vname in CACHED_TAXCALC_VARIABLES:
Expand Down

0 comments on commit bacbdc7

Please sign in to comment.