Skip to content

Commit

Permalink
Merge pull request #105 from blakecaldwell/fix_last_step
Browse files Browse the repository at this point in the history
BUG: recalculate last step in case it has changed
  • Loading branch information
blakecaldwell committed Oct 3, 2019
2 parents 59694f6 + 80855c0 commit 6ecf0c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hnn_qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ def optmodel (self):

# reload opt_params for the last step in case the number of
# steps was changed by updateoptparams()
self.opt_params = dconf['opt_info'][total_steps - 1]
final_step = len(dconf['opt_info']) - 1
self.opt_params = dconf['opt_info'][final_step]

txt = "Starting optimization step %d/%d"%(step+1,total_steps)
self.updatewaitsimwin(txt)
Expand Down

0 comments on commit 6ecf0c6

Please sign in to comment.