Skip to content

Commit

Permalink
advance to year
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Metz committed Jul 15, 2019
1 parent afa0909 commit 80ebbd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions taxcrunch/cruncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,16 @@ def run_calc(self):
recs = tc.Records(data=self.data, start_year=year)

self.calc1 = tc.Calculator(policy=self.pol, records=recs)
self.calc1.advance_to_year(year)
self.calc1.calc_all()

self.calc_reform = tc.Calculator(policy=self.pol2, records=recs)
self.calc_reform.advance_to_year(year)
self.calc_reform.calc_all()

recs_mtr = tc.Records(data=self.data_mtr, start_year=year)
self.calc_mtr = tc.Calculator(policy=self.pol2, records=recs_mtr)
self.calc_mtr.advance_to_year(year)
self.calc_mtr.calc_all()

return self.calc1, self.calc_reform, self.calc_mtr
Expand Down

0 comments on commit 80ebbd6

Please sign in to comment.