Skip to content

Commit 4403cc8

Browse files
addlog
1 parent 54c509a commit 4403cc8

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/python/antares_xpansion/benders_driver.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ def set_custom_working_dir(self, dir: Path):
4848
self.custom_working_dir = dir
4949

5050
def launch(
51-
self,
52-
simulation_output_path,
53-
method,
54-
keep_mps=False,
55-
n_mpi=1,
56-
oversubscribe=False,
57-
allow_run_as_root=False,
51+
self,
52+
simulation_output_path,
53+
method,
54+
keep_mps=False,
55+
n_mpi=1,
56+
oversubscribe=False,
57+
allow_run_as_root=False,
5858
):
5959
"""
6060
launch the optimization of the antaresXpansion problem using the specified solver
@@ -73,11 +73,11 @@ def launch(
7373
self.logger.info(f"Current directory is now: {os.getcwd()}")
7474

7575
self.set_solver()
76-
76+
self.logger.info(f"Solver is now: {self.solver}")
7777
# delete execution logs
7878
self._clean_log_files()
79-
80-
print(self._get_solver_cmd())
79+
self.logger.info("Solver execution")
80+
self.logger.info(self._get_solver_cmd())
8181
ret = subprocess.run(
8282
self._get_solver_cmd(),
8383
shell=False,

0 commit comments

Comments
 (0)