Skip to content

Commit

Permalink
Data for new modeler (4.1) : more fix due to review
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Jan 23, 2025
1 parent 5bca306 commit 7550fc1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class LinearProblemData: public Api::ILinearProblemData
const unsigned scenario,
const unsigned hour) override;

void addScenarioGroup(std::string groupId, std::pair<unsigned, unsigned> scenarioToRank);
void addScenarioGroup(const std::string& groupId, std::pair<unsigned, unsigned> scenarioToRank);
void addDataSeries(std::unique_ptr<IDataSeries> dataSeries);

private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TimeSeriesSet: public IDataSeries
{
public:
explicit TimeSeriesSet(std::string name, unsigned height);
void add(std::vector<double> ts);
void add(const std::vector<double>& ts);
double getData(unsigned rank, unsigned hour) override;

private:
Expand Down
2 changes: 1 addition & 1 deletion src/solver/modeler/dataSeries/linearProblemData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace Antares::Solver::Modeler::DataSeries
{

void LinearProblemData::addScenarioGroup(std::string groupId,
void LinearProblemData::addScenarioGroup(const std::string& groupId,
std::pair<unsigned, unsigned> scenarioToRank)
{
groupRepository_.addPairScenarioRankToGroup(groupId, scenarioToRank);
Expand Down
2 changes: 1 addition & 1 deletion src/solver/modeler/dataSeries/timeSeriesSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TimeSeriesSet::TimeSeriesSet(std::string name, unsigned int height):
{
}

void TimeSeriesSet::add(std::vector<double> ts)
void TimeSeriesSet::add(const std::vector<double>& ts)
{
if (ts.size() != height_)
{
Expand Down

0 comments on commit 7550fc1

Please sign in to comment.