From ffcecd92fcc4a4270afc43d71dba21a5c62092c7 Mon Sep 17 00:00:00 2001 From: belthlemar Date: Wed, 18 Dec 2024 11:36:47 +0100 Subject: [PATCH] little refactoring --- .../model/filesystem/root/output/simulation/simulation.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/simulation.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/simulation.py index 406732ee99..129b05f147 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/simulation.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/simulation.py @@ -47,13 +47,10 @@ def build(self) -> TREE: "about-the-study": OutputSimulationAbout(self.context, self.config.next_file("about-the-study")), "simulation": RawFileNode(self.context, self.config.next_file("simulation.log")), "info": OutputSimulationInfoAntaresOutput(self.context, self.config.next_file("info.antares-output")), + "antares-out": RawFileNode(self.context, self.config.next_file("antares-out.log")), + "antares-err": RawFileNode(self.context, self.config.next_file("antares-err.log")), } - for output_type in ["out", "err"]: - file_name = f"antares-{output_type}" - if (self.config.path / f"{file_name}.log").exists(): - children[file_name] = RawFileNode(self.context, self.config.next_file(f"{file_name}.log")) - if not self.simulation.error: for file in ["annualSystemCost", "checkIntegrity", "simulation-comments"]: file_name = f"{file}.txt"