From 79fd597e91eb2058e39c98af371a58d821cdf2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Moreno?= Date: Tue, 9 Jan 2024 16:21:34 +0100 Subject: [PATCH 1/2] Allow skipping loading of db_file --- src/reach_study.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/reach_study.cpp b/src/reach_study.cpp index 37edf1dd..f599c48d 100644 --- a/src/reach_study.cpp +++ b/src/reach_study.cpp @@ -343,7 +343,11 @@ void runReachStudy(const YAML::Node& config, const std::string& config_name, con const boost::filesystem::path db_file = results_dir / config_name / "reach.db.xml"; - if (boost::filesystem::exists(db_file)) + YAML::Emitter emitter; + emitter << opt_config; + logger->print(emitter.c_str()); + bool skip_load = opt_config["skip_load"] && opt_config["skip_load"].as(); + if (boost::filesystem::exists(db_file) && !skip_load) { // Attempt to load the database first, if it exists rs.load(db_file.string()); From 8a58e98c8d0f988bcdaff9d31360b8ca68a20643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Moreno?= Date: Wed, 24 Jan 2024 09:16:18 +0100 Subject: [PATCH 2/2] Remove debugging lines --- src/reach_study.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/reach_study.cpp b/src/reach_study.cpp index f599c48d..949c7186 100644 --- a/src/reach_study.cpp +++ b/src/reach_study.cpp @@ -343,9 +343,6 @@ void runReachStudy(const YAML::Node& config, const std::string& config_name, con const boost::filesystem::path db_file = results_dir / config_name / "reach.db.xml"; - YAML::Emitter emitter; - emitter << opt_config; - logger->print(emitter.c_str()); bool skip_load = opt_config["skip_load"] && opt_config["skip_load"].as(); if (boost::filesystem::exists(db_file) && !skip_load) {