in src/primitives.cpp [150:169]
void writeToDisk(ErrorTimingHistogram& et, int index)
{
for (auto &run : et)
{
stringstream ss;
if (index >= 0) ss << index << "_";
ss << statusToString(run.first) << ".csv";
auto nameOutFile = ss.str();
ofstream outFile(nameOutFile, ios_base::trunc);
if (outFile.fail())
{
cerr << "Failed to write to file " << nameOutFile << "\n";
return;
}
outFile << run.second;
outFile.close();
}
}