assert(n_config.Type()==YAML::NodeType::Map&&"trying to parse config node but found a non-Map node");
// assert(n_config.Type() == YAML::NodeType::Map && "trying to parse config node but found a non-Map node");
if(n_config.Type()!=YAML::NodeType::Map)throwstd::runtime_error("Could not find config node. Please make sure that your YAML file "+generatePath(file)+" starts with 'config:'");
if(n_config["problem"].Type()!=YAML::NodeType::Map)throwstd::runtime_error("Could not find problem node. Please make sure that the 'config' node in YAML file "+generatePath(file)+" has a 'problem' entry");