diff options
author | Thomas White <taw@physics.org> | 2017-09-05 17:21:07 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-09-05 17:21:07 +0200 |
commit | 7a5880127600eb823f743e40b8f5bd55b983e170 (patch) | |
tree | 9679eeab3f508a0838496424ab5a8cd26c5937e2 | |
parent | 4988c33fb1efd61230aa3b799d3e3712d2436301 (diff) |
cell_explorer: Display number of matching cells (on terminal)
-rw-r--r-- | src/cell_explorer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cell_explorer.c b/src/cell_explorer.c index f13a2e8b..ed17c2cd 100644 --- a/src/cell_explorer.c +++ b/src/cell_explorer.c @@ -629,6 +629,7 @@ static void scan_cells(CellWindow *w) int i; UnitCell **cells = w->cells; int n_cells = w->n_cells; + int n_excl = 0; multihistogram_delete_all_values(w->hist_a->h); multihistogram_delete_all_values(w->hist_b->h); @@ -684,6 +685,7 @@ static void scan_cells(CellWindow *w) check_exclude(w->hist_ga, ga) ) { cat = 1<<CAT_EXCLUDE; + n_excl++; } multihistogram_add_value(w->hist_a->h, a, cat); @@ -694,6 +696,8 @@ static void scan_cells(CellWindow *w) multihistogram_add_value(w->hist_ga->h, ga, cat); } + + STATUS("Selected %i of %i cells\n", n_cells-n_excl, n_cells); } |