Skip to content

Commit

Permalink
Merge pull request #343 from rl-institut/features/improve_log_filepath
Browse files Browse the repository at this point in the history
Features/improve log filepath
  • Loading branch information
MaGering committed Sep 11, 2023
2 parents aba69a1 + 7484d0d commit c8d06b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ def get_additional_scalars():

# save solver log to scenario specific location
solve_kwargs = config.settings.optimize.solve_kwargs
solve_kwargs["logfile"] = logfile.split(".")[0] + "_solver_log.log"
solve_kwargs["logfile"] = (
logfile.split("." + logfile.split(".")[-1])[0] + "_solver_log.log"
)

logger.info(
f"Solving with solver '{config.settings.optimize.solver}' "
Expand Down

0 comments on commit c8d06b7

Please sign in to comment.