add relaxis file to pass fail dataset converter
This commit is contained in:
parent
eb39967226
commit
a84154d92f
9 changed files with 169 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "common.h"
|
||||
|
||||
#include <eisgenerator/eistype.h>
|
||||
#include <kisstype/spectra.h>
|
||||
#include <eisgenerator/translators.h>
|
||||
#include <iostream>
|
||||
|
||||
|
|
@ -22,12 +22,15 @@ bool saveData(const std::string& exportName, const ModelData& data, const std::f
|
|||
++classIndex;
|
||||
} while(std::filesystem::exists(outDir/filename));
|
||||
|
||||
if(!saveToDisk(eis::EisSpectra(data.data, data.modelStr, data.id + ", \"" + originFile.filename().string() + "\""), outDir/filename))
|
||||
try
|
||||
{
|
||||
eis::Spectra(data.data, data.modelStr, data.id + ", \"" + originFile.filename().string() + "\"").saveToDisk(outDir/filename);
|
||||
return true;
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
std::cerr<<"Unable to save to "<<outDir/filename;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool checkDir(const std::filesystem::path& outDir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue