Skip to content

Commit

Permalink
yuni str conv
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Oct 15, 2024
1 parent f11b844 commit 5901006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/libs/antares/study/parts/common/cluster_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ void ClusterList<ClusterT>::storeTimeseriesNumbers(Solver::IResultWriter& writer

for (auto& cluster: each_enabled())
{
fs::path path = fs::path(cluster->parentArea->id) / std::string(cluster->id() + ".txt");
fs::path path = fs::path(cluster->parentArea->id.c_str())
/ std::string(cluster->id() + ".txt");

ts_content.clear(); // We must clear ts_content here, since saveToBuffer does not do it.
cluster->series.timeseriesNumbers.saveToBuffer(ts_content);
Expand Down
2 changes: 1 addition & 1 deletion src/solver/simulation/opt_time_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ void OptimizationStatisticsWriter::finalize()
const path filename = path("optimization") / "week-by-week"
/ ("year_" + std::to_string(pYear) + ".txt");
std::string s = pBuffer.str();
pWriter.addEntryFromBuffer(filename.string(), s);
pWriter.addEntryFromBuffer(filename, s);
}

0 comments on commit 5901006

Please sign in to comment.