diff --git a/src/reach_study.cpp b/src/reach_study.cpp index 37edf1d..949c718 100644 --- a/src/reach_study.cpp +++ b/src/reach_study.cpp @@ -343,7 +343,8 @@ 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)) + 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());