Skip to content

Commit

Permalink
Use format string.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Jun 11, 2021
1 parent cc6bb8f commit 8b44241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _get_num_tasks(self, step):
if is_run_step(step):
num_runs = len(self.exp.runs)
num_tasks = math.ceil(num_runs / self._get_num_runs_per_task())
logging.info("Grouping {num_runs} runs into {num_tasks} Slurm tasks.")
logging.info(f"Grouping {num_runs} runs into {num_tasks} Slurm tasks.")
else:
num_tasks = 1
return num_tasks
Expand Down

0 comments on commit 8b44241

Please sign in to comment.