Skip to content
Snippets Groups Projects
Commit 2977b7da authored by Omar Zapata's avatar Omar Zapata
Browse files

TMVA: fixed pdefoam method to read xml file in ModelPersistence mode.

parent 524996f2
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#include "TMVA/MsgLogger.h" #include "TMVA/MsgLogger.h"
#include "TMVA/Tools.h" #include "TMVA/Tools.h"
#include "TMVA/Types.h" #include "TMVA/Types.h"
#include "TMVA/Config.h"
using std::vector; using std::vector;
...@@ -197,6 +198,12 @@ void TMVA::MethodCompositeBase::ReadWeightsFromXML( void* wghtnode ) ...@@ -197,6 +198,12 @@ void TMVA::MethodCompositeBase::ReadWeightsFromXML( void* wghtnode )
Log() << kFATAL << "Could not read method from XML" << Endl; Log() << kFATAL << "Could not read method from XML" << Endl;
void* methXML = gTools().GetChild(ch); void* methXML = gTools().GetChild(ch);
TString _fFileDir= meth->DataInfo().GetName();
_fFileDir+="/"+gConfig().GetIONames().fWeightFileDir;
meth->SetWeightFileDir(_fFileDir);
meth->SetModelPersistence(IsModelPersistence());
meth->SetSilentFile(IsSilentFile());
meth->SetupMethod(); meth->SetupMethod();
meth->SetMsgType(kWARNING); meth->SetMsgType(kWARNING);
meth->ParseOptions(); meth->ParseOptions();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment