MattStammers commited on
Commit
f86c6b7
1 Parent(s): a4327bb

Update app.py

Browse files

Fixed glitch in app

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def run_simulation(model, simulation_time, re_investment):
20
 
21
  model.clear_last_run()
22
 
23
- model.aux_equations['percentageOfSavingsSpentOnCessation'] = str(re_investment)
24
 
25
  model.simulate()
26
 
 
20
 
21
  model.clear_last_run()
22
 
23
+ model.replace_element_equation('Percentage_of_savings_spent_on_cessation', re_investment)
24
 
25
  model.simulate()
26