Skip to content

Commit

Permalink
prepro
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Oct 15, 2024
1 parent 9b1439d commit 6e067fd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/libs/antares/study/area/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ static bool AreaListLoadFromFolderSingleArea(Study& study,
{
// if changes are required, please update reloadXCastData()
fs::path loadPath = study.folderInput / "load" / "prepro" / area.id.to<std::string>();
ret = area.load.prepro->loadFromFolder(loadPath.string()) && ret;
ret = area.load.prepro->loadFromFolder(loadPath) && ret;
}
if (!options.loadOnlyNeeded || !area.load.prepro) // Series
{
Expand All @@ -917,7 +917,7 @@ static bool AreaListLoadFromFolderSingleArea(Study& study,
{
// if changes are required, please update reloadXCastData()
fs::path solarPath = study.folderInput / "solar" / "prepro" / area.id.to<std::string>();
ret = area.solar.prepro->loadFromFolder(solarPath.string()) && ret;
ret = area.solar.prepro->loadFromFolder(solarPath) && ret;
}
if (!options.loadOnlyNeeded || !area.solar.prepro) // Series
{
Expand Down Expand Up @@ -973,7 +973,7 @@ static bool AreaListLoadFromFolderSingleArea(Study& study,
{
// if changes are required, please update reloadXCastData()
fs::path windPath = study.folderInput / "wind" / "prepro" / area.id.to<std::string>();
ret = area.wind.prepro->loadFromFolder(windPath.string()) && ret;
ret = area.wind.prepro->loadFromFolder(windPath) && ret;
}
if (!options.loadOnlyNeeded || !area.wind.prepro) // Series
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Prepro
/*!
** \brief Load data from a folder
*/
bool loadFromFolder(const std::string& folder);
bool loadFromFolder(const std::filesystem::path& folder);

/*!
** \brief Save data to a folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Prepro
/*!
** \brief Solar data from a folder
*/
bool loadFromFolder(const std::string& folder);
bool loadFromFolder(const std::filesystem::path& folder);

/*!
** \brief Save data to a folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Prepro
/*!
** \brief Load data from a folder
*/
bool loadFromFolder(const std::string& folder);
bool loadFromFolder(const std::filesystem::path& folder);

/*!
** \brief Save data to a folder
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/study/parts/load/prepro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Prepro::~Prepro()
{
}

bool Prepro::loadFromFolder(const std::string& folder)
bool Prepro::loadFromFolder(const std::filesystem::path& folder)
{
return xcast.loadFromFolder(folder);
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/study/parts/solar/prepro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Prepro::~Prepro()
{
}

bool Prepro::loadFromFolder(const std::string& folder)
bool Prepro::loadFromFolder(const std::filesystem::path& folder)
{
return xcast.loadFromFolder(folder);
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/study/parts/wind/prepro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Prepro::~Prepro()
{
}

bool Prepro::loadFromFolder(const std::string& folder)
bool Prepro::loadFromFolder(const std::filesystem::path& folder)
{
return xcast.loadFromFolder(folder);
}
Expand Down

0 comments on commit 6e067fd

Please sign in to comment.