From 1cdda23d3428102354305e00c7f1518a4b0c17a6 Mon Sep 17 00:00:00 2001 From: belthlemar Date: Mon, 30 Sep 2024 18:13:24 +0200 Subject: [PATCH] fix issue but still 52 test failures --- .../filesystem/root/output/simulation/mode/common/area.py | 4 ++-- .../filesystem/root/output/simulation/mode/common/link.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/area.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/area.py index 0b97fa5735..d3aa73a8d5 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/area.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/area.py @@ -33,9 +33,9 @@ def build(self) -> TREE: freq: MatrixFrequency for freq in MatrixFrequency: for output_type in ["id", "values", "details", "details-res", "details-STstorage"]: - file_name = f"{output_type}-{freq}.txt" + file_name = f"{output_type}-{freq.value}" if (self.config.path / file_name).exists(): - children[f"{output_type}-{freq}"] = AreaOutputSeriesMatrix( + children[f"{output_type}-{freq.value}"] = AreaOutputSeriesMatrix( self.context, self.config.next_file(file_name), freq, diff --git a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/link.py b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/link.py index b5f0b15dcb..8039b664e5 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/link.py +++ b/antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/common/link.py @@ -35,9 +35,9 @@ def build(self) -> TREE: freq: MatrixFrequency for freq in MatrixFrequency: for output_type in ["id", "values"]: - file_name = f"{output_type}-{freq}.txt" + file_name = f"{output_type}-{freq.value}" if (self.config.path / file_name).exists(): - children[f"{output_type}-{freq}"] = LinkOutputSeriesMatrix( + children[f"{output_type}-{freq.value}"] = LinkOutputSeriesMatrix( self.context, self.config.next_file(file_name), freq,