Skip to content

Commit

Permalink
Only increment sim_count when a whole JobGroup finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
emitra17 committed Jan 8, 2019
1 parent 9700784 commit eb6eeeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybnf/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,14 +886,14 @@ def run(self, log_prefix, scheduler_node=None, resume=None, debug=False, reuse_c
logger.error(res.traceback)
res = FailedSimulation(pending[f][0], pending[f][1], 3)
# Handle if this result is one of multiple instances for smoothing
sim_count += 1
del pending[f]
if self.config.config['smoothing'] > 1 or self.config.config['parallelize_models'] > 1:
group = self.job_group_dir.pop(res.name)
done = group.job_finished(res)
if not done:
continue
res = group.average_results()
sim_count += 1
if isinstance(res, FailedSimulation):
if res.fail_type >= 1:
self.fail_count += 1
Expand Down

0 comments on commit eb6eeeb

Please sign in to comment.