Skip to content

Commit

Permalink
Merge pull request #277 from PSLmodels/cache-allvars
Browse files Browse the repository at this point in the history
cache all variables
  • Loading branch information
donboyd5 authored Nov 5, 2024
2 parents d5601b0 + f34a605 commit 15f290d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tmd/create_taxcalc_cached_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def create_cached_files():
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:
varray = calc.array(vname)
Expand Down

0 comments on commit 15f290d

Please sign in to comment.