From 3e19e19ba12778db2ea6373afd2d2fc250c6c9de Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Thu, 28 Sep 2023 11:09:06 +0200 Subject: [PATCH] Fix duplicate TS numbers for thermal clusters (#1090) --- src/libs/antares/study/parts/common/cluster_list.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/antares/study/parts/common/cluster_list.cpp b/src/libs/antares/study/parts/common/cluster_list.cpp index 1458cd9750..0ba7cf2afb 100644 --- a/src/libs/antares/study/parts/common/cluster_list.cpp +++ b/src/libs/antares/study/parts/common/cluster_list.cpp @@ -177,6 +177,7 @@ void ClusterList::storeTimeseriesNumbers(Solver::IResultWriter::Ptr wr each([&](const Cluster& cluster) { path.clear() << "ts-numbers" << SEP << typeID() << SEP << cluster.parentArea->id << SEP << cluster.id() << ".txt"; + ts_content.clear(); // We must clear ts_content here, since saveToBuffer does not do it. cluster.series->timeseriesNumbers.saveToBuffer(ts_content, 0, true, predicate, true); writer->addEntryFromBuffer(path.c_str(), ts_content); });