Add judgment of Parser path.

This commit is contained in:
sunwen
2023-07-03 17:15:15 +08:00
parent 6c7f967160
commit 91c7b798e5

View File

@@ -34,6 +34,17 @@ void Recon::startReconstructions(const std::string& aDataPath, const std::string
MatlabWriter writer(aOutputPath); MatlabWriter writer(aOutputPath);
Parser dataParser(aDataPath); Parser dataParser(aDataPath);
Parser refParser(aDataRefPath); Parser refParser(aDataRefPath);
if(!dataParser.getShotList()->isValid())
{
RECON_INFO("data path is invalid.");
return;
}
if(!refParser.getShotList()->isValid())
{
RECON_INFO("empty water path is invalid.");
return;
}
//init total used receiver/emitter/motorPos //init total used receiver/emitter/motorPos
Matrix motorPosTotal, slList, snList, rlList, rnList; Matrix motorPosTotal, slList, snList, rlList, rnList;
if(transParams::runTransmissionReco && reflectParams::runReflectionReco) if(transParams::runTransmissionReco && reflectParams::runReflectionReco)