Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jun 11, 2024
1 parent 70b3924 commit e6f4537
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libs/antares/study/parts/hydro/prepro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,11 @@ bool PreproHydro::saveToFolder(const AreaName& areaID, const char* folder)

bool PreproHydro::loadFromFolder(Study& s, const AreaName& areaID, const std::string& folder)
{
/* Asserts */
assert(!folder.empty());

enum
{
mtrxOption = Matrix<>::optFixedSize | Matrix<>::optImmediate,
};
constexpr int maxNbOfLineToLoad = 12;

data.resize(hydroPreproMax, 12, true);
String& buffer = s.bufferLoadingTS;
Expand All @@ -162,7 +160,7 @@ bool PreproHydro::loadFromFolder(Study& s, const AreaName& areaID, const std::st
bool ret = PreproHydroLoadSettings(this, buffer);

buffer.clear() << folder << SEP << areaID << SEP << "energy.txt";
ret = data.loadFromCSVFile(buffer, hydroPreproMax, 12, mtrxOption, &s.dataBuffer) && ret;
ret = data.loadFromCSVFile(buffer, hydroPreproMax, maxNbOfLineToLoad, mtrxOption, &s.dataBuffer) && ret;

return ret;
}
Expand Down

0 comments on commit e6f4537

Please sign in to comment.