Skip to content

Commit

Permalink
panic with error message on proben1 with gui
Browse files Browse the repository at this point in the history
  • Loading branch information
samyhaff committed Jun 9, 2024
1 parent 93b5623 commit 8d287c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ fn main() {

match cli.gui {
true => {
if cli.problem == Problem::Proben1 {
panic!("Proben1 is not supported in GUI mode");
}

let mut conf_file = File::open("configs/gui_conf.toml").unwrap();
let conf = conf::Conf::from_toml_file(&mut conf_file).unwrap();
let cb = ContextBuilder::new("Neuroevolution", "Samy Haffoudhi") .default_conf(conf);
Expand Down

0 comments on commit 8d287c1

Please sign in to comment.