Skip to content

Commit

Permalink
Send correct color count.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Oct 31, 2024
1 parent e910d7b commit e4926cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ async fn get_control_stats() -> BackendResponse {
let cmp = cmp.read().unwrap();
if let Some(computation) = &*cmp {
let pstg = computation.graph.as_ref();
let unit = pstg.mk_unit_colors();
let unit = pstg.as_non_perturbable().mk_unit_colors();
if let Some(results) = computation.results.as_ref() {
let mut minimal_perturbation: Option<usize> = None;
let mut max_robustness: Option<f64> = None;
Expand Down Expand Up @@ -1039,7 +1039,7 @@ async fn get_control_results() -> BackendResponse {
let cmp = cmp.read().unwrap();
if let Some(computation) = &*cmp {
let pstg = computation.graph.as_ref();
let unit = pstg.mk_unit_colors();
let unit = pstg.as_non_perturbable().mk_unit_colors();
if let Some(results) = computation.results.as_ref() {
let mut response = JsonValue::new_array();
for (key, value) in results {
Expand Down

0 comments on commit e4926cb

Please sign in to comment.