Skip to content

Commit

Permalink
Merge pull request #24 from sile/fix-wrong-terminate-condition
Browse files Browse the repository at this point in the history
Allow the case where `end_step == self.study_step`
  • Loading branch information
sile authored Aug 21, 2020
2 parents e66ee3e + 7aa3ca6 commit 3d06f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl StudyRunner {
self.pb.inc(elapsed_steps);
let end_step = self.pb.position();

if end_step < self.study_steps {
if end_step <= self.study_steps {
let ((), tell_elapsed) =
ElapsedSeconds::try_time(|| track!(self.solver.tell(evaluated_trial.clone())))?;

Expand Down

0 comments on commit 3d06f06

Please sign in to comment.