Skip to content

Commit

Permalink
Fix duplicate TS numbers for thermal clusters (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Sep 28, 2023
1 parent e3b9f87 commit 3e19e19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/antares/study/parts/common/cluster_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ void ClusterList<ClusterT>::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);
});
Expand Down

0 comments on commit 3e19e19

Please sign in to comment.