Skip to content

Commit

Permalink
use pop over get
Browse files Browse the repository at this point in the history
  • Loading branch information
gidden committed Sep 19, 2017
1 parent 26b398f commit 25be471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salamanca/models/project.py
Expand Up @@ -215,8 +215,8 @@ def _add_spread_rules(self, spread):
m.i_std_lo = mo.Constraint(
rule=lambda m: std_diff_lo(m, b=b), doc='')
if 'income_rate' in spread:
b_lo = spread['income_rate'].pop('b_lo', 0.5)
b_hi = spread['income_rate'].pop('b_hi', 1.5)
b_lo = spread['income_rate'].get('b_lo', 0.5)
b_hi = spread['income_rate'].get('b_hi', 1.5)
m.rate_hi = mo.Constraint(
m.idxs,
rule=lambda m, idx: income_rate_hi_rule(m, idx, b_hi),
Expand Down

0 comments on commit 25be471

Please sign in to comment.