15 auto Processor = std::make_unique<MCMCProcessor>(inputFile);
16 Processor->SetOutputSuffix(
"_MCMC_Diag");
18 Processor->SetExcludedTypes(
GetFromManager<std::vector<std::string>>(Settings[
"DiagMCMC"][
"ExcludedTypes"], {}));
19 Processor->SetExcludedNames(
GetFromManager<std::vector<std::string>>(Settings[
"DiagMCMC"][
"ExcludedNames"], {}));
20 Processor->SetPlotRelativeToPrior(GetFromManager<bool>(Settings[
"DiagMCMC"][
"PlotRelativeToPrior"],
false));
22 Processor->SetnBatches(GetFromManager<int>(Settings[
"DiagMCMC"][
"nBatches"], 20));
23 Processor->SetnLags(GetFromManager<int>(Settings[
"DiagMCMC"][
"nLags"], 25000));
24 Processor->SetPrintToPDF(GetFromManager<bool>(Settings[
"PrintToPDF"],
true));
25 Processor->Initialise();
28 Processor->DiagMCMC();
31int main(
int argc,
char *argv[]) {
39 std::string filename = argv[1];
40 std::string
config = argv[2];
int main(int argc, char *argv[])
void DiagMCMC(const std::string &inputFile, const std::string &config)
Main function creating MCMCProcessor and calling MCMC Diagnostic.
void SetMaCh3LoggerFormat()
Set messaging format of the logger.
Type GetFromManager(const YAML::Node &node, Type defval, const std::string File="", const int Line=1)
Get content of config file if node is not found take default value specified.
#define M3OpenConfig(filename)
Macro to simplify calling LoadYaml with file and line info.
Custom exception class for MaCh3 errors.