Skip to content

Commit

Permalink
Fix condition for disabling "store in input"
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jun 21, 2024
1 parent 7dbb39c commit 6ea1e8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/antares/study/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ void Study::parameterFiller(const StudyLoadOptions& options)
if (usedByTheSolver)
{
// We have time-series to import
if (parameters.exportTimeSeriesInInput && header.version == StudyVersion::latest())
if (parameters.exportTimeSeriesInInput && header.version != StudyVersion::latest())
{
logs.info() << "Stochastic TS stored in input parametrized."
" Disabling Store in input because study is not at latest version"
"Prevents writing data in unsupported format at the study version";
" Disabling Store in input because study is not at latest version."
" This prevents writing data in unsupported format at the study version";
parameters.exportTimeSeriesInInput = 0;
}
}
Expand Down

0 comments on commit 6ea1e8b

Please sign in to comment.