Skip to content

Commit

Permalink
Merge pull request #1315 from YuliaProkopovych/opt-tools
Browse files Browse the repository at this point in the history
READY(optimization_tools): Fix features
  • Loading branch information
Wandalen authored May 10, 2024
2 parents 3acc1ac + 143c715 commit f0be1f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions module/move/optimization_tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ full = [
]
enabled = []
# rapidity_6 = [] # to enable slow tests
# static_plot = []
plotting = [ "dep:plotters-backend", "dep:piston_window" ]
static_plot = []
dynamic_plot = [ "static_plot", "dep:plotters-backend", "dep:piston_window" ]
lp_parse = [ "dep:exmex" ]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion module/move/optimization_tools/src/hybrid_optimizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
use crate::*;
#[ cfg( feature="plotting" ) ]
#[ cfg( feature="static_plot" ) ]
use crate::plot::{ PlotDescription, PlotOptions, plot };
use iter_tools::Itertools;
use std::ops::RangeInclusive;
Expand Down
4 changes: 2 additions & 2 deletions module/move/optimization_tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub mod problems;
pub mod hybrid_optimizer;
pub mod simplex;
pub mod optimal_params_search;
#[ cfg( feature="plotting" ) ]
#[ cfg( feature="static_plot" ) ]
pub mod plot;
#[ cfg( feature="plotting" ) ]
#[ cfg( feature="dynamic_plot" ) ]
pub mod plot_dynamic;

0 comments on commit f0be1f5

Please sign in to comment.