From 80ebbd6877fac29d42db2b005c28f659e2391bda Mon Sep 17 00:00:00 2001 From: Peter-Metz Date: Mon, 15 Jul 2019 14:14:33 -0400 Subject: [PATCH] advance to year --- taxcrunch/cruncher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/taxcrunch/cruncher.py b/taxcrunch/cruncher.py index 4d8197a..80b6fdd 100644 --- a/taxcrunch/cruncher.py +++ b/taxcrunch/cruncher.py @@ -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