Skip to content

Commit

Permalink
updates for new plot func
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Feb 7, 2024
1 parent e015e94 commit 60b57d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ogusa/income.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def get_e_interp(S, age_wgts, age_wgts_80, abil_wgts, plot=False):
new_s_midp,
abil_midp,
abil_wgts,
emat_new_scaled,
OUTPUT_DIR,
emat_new_scaled.reshape((1, S, J)),
path=OUTPUT_DIR,
**kwargs,
)

Expand Down Expand Up @@ -460,7 +460,8 @@ def get_e_orig(age_wgts, abil_wgts, plot=False):
# Plot original unscaled 80 x 7 ability matrix
kwargs = {"filesuffix": "_orig_unscaled"}
pp.plot_income_data(
ages_long, abil_midp, abil_wgts, e_orig, OUTPUT_DIR, **kwargs
ages_long, abil_midp, abil_wgts,
e_orig.reshape((1, 80, 7)), path=OUTPUT_DIR, **kwargs
)

# Plot original scaled 80 x 7 ability matrix
Expand All @@ -469,8 +470,8 @@ def get_e_orig(age_wgts, abil_wgts, plot=False):
ages_long,
abil_midp,
abil_wgts,
e_orig_scaled,
OUTPUT_DIR,
e_orig_scaled.reshape((1, 80, 7)),
path=OUTPUT_DIR,
**kwargs,
)

Expand Down

0 comments on commit 60b57d6

Please sign in to comment.