Skip to content

Commit

Permalink
Merge pull request #381 from jdebacker/reforms
Browse files Browse the repository at this point in the history
Allow use of current law as reform
  • Loading branch information
jdebacker authored May 12, 2018
2 parents 91c0738 + 63e37f4 commit 3559d08
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions ogusa/get_micro_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ def get_calculator(baseline, calculator_start_year, reform=None,
records1 = Records()

if baseline:
# Should not be a reform if baseline is True
assert not reform

if not baseline:
print("REFORM", reform)
print("TYPE", type(reform))
policy1.implement_reform(reform)
if not reform:
print("Running current law policy baseline")
else:
print("Baseline policy is: ", reform)
else:
if not reform:
print("Running with current law as reform")
else:
print("Reform policy is: ", reform)
print("TYPE", type(reform))
policy1.implement_reform(reform)

# the default set up increments year to 2013
calc1 = Calculator(records=records1, policy=policy1)
Expand Down

0 comments on commit 3559d08

Please sign in to comment.