Add judgment of Parser path.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user