Skip to content

Commit

Permalink
Try printing more infos
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Sep 27, 2023
1 parent bae5dac commit fca2f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modeldb/modelrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ def _run_models(self, model_runs):
pool = multiprocessing.Pool()

processed_models = pool.imap_unordered(run_model, model_runs)
for model in ProgressBar.iter(processed_models, self.nof_models):
for i, model in enumerate(ProgressBar.iter(processed_models, self.nof_models)):
self.logger.info(f"[{i} / {self.nof_models}] Running model '{model.id}'")
self.run_logs[model.id] = {}
self.run_logs[model.id]["logs"] = model.logs
if self._gout:
Expand Down

0 comments on commit fca2f8d

Please sign in to comment.