Skip to content

Commit

Permalink
little refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Dec 18, 2024
1 parent 69d59cc commit ffcecd9
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ffcecd9

Please sign in to comment.