Antares_Simulator icon indicating copy to clipboard operation
Antares_Simulator copied to clipboard

simulation.start correction is confusing

Open flomnes opened this issue 1 year ago • 0 comments

See src/libs/antares/study/parameters.cpp

if (key == "simulation.start")
{
    uint day;
    if (not value.to(day))
        return false;
    if (day == 0)
        day = 1;
    else
    {
        if (day > 365)
            day = 365;
        --day;
    }
    d.simulationDays.first = day;
    return true;
}

In particular, we have

  • If simulation.start = 0 , then d.simulationDays.first = 1
  • If simulation.start = 1 (default), then d.simulationDays.first = 0

flomnes avatar Aug 29 '23 13:08 flomnes