Skip to content

Commit

Permalink
Hotfix to develop to fix a bug introduced for MET #2887. Refine the d…
Browse files Browse the repository at this point in the history
…efine_prob_bins() utility function so that ==n probability thresholds result in the correct number of probability thresholds. We were adding an unncessary 10-th bin (from 1.07143 to 1.0) for the ==7 probability threshold type.
  • Loading branch information
JohnHalleyGotway committed Sep 10, 2024
1 parent 93014d5 commit 095cd8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/basic/vx_util/thresh_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ ThreshArray define_prob_bins(double beg, double end, double inc, int prec) {
}

// Add final 1.0 threshold, if needed
if(!is_eq(ta[(ta.n() - 1)].get_value(), 1.0)) {
v = ta[(ta.n() - 1)].get_value();
if(v < 1.0 && !is_eq(v, 1.0)) {
cs << cs_erase << ">=1.0";
ta.add(cs.c_str());
}
Expand Down

0 comments on commit 095cd8e

Please sign in to comment.