Skip to content

Commit

Permalink
Add fix to MTR bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Aug 9, 2021
1 parent b570997 commit e2923c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openfisca_uk/graphs/hypothetical.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,20 @@ def mtr_chart(
reforms = [reforms]
names = ["Reform"]

test_sim = IndividualSim()
situation_function(test_sim)
situation_data = test_sim.situation_data
households = situation_data["households"]
adults = households[list(households.keys())[0]]["adults"]
primary_adult = adults[0]

invert += INVERTED_DERIV_VARIABLES
df = get_wide_reform_individual_data(
reforms,
names,
variables,
situation_function,
primary_adult_name=primary_adult,
include_derivatives=True,
)
for var in df.columns:
Expand Down

0 comments on commit e2923c5

Please sign in to comment.