Skip to content

Commit

Permalink
Only save results if output is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Dec 31, 2024
1 parent 04b5f05 commit e21ceea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/api/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ SimulationResults APIInternal::execute(
study_->folderOutput,
ioQueueService,
durationCollector);
study_->saveAboutTheStudy(*resultWriter);

// In some cases (e.g tests) we don't want to write anything
if (!output.empty())
{
study_->saveAboutTheStudy(*resultWriter);
}

SimulationObserver simulationObserver;

Expand Down

0 comments on commit e21ceea

Please sign in to comment.