Skip to content
Snippets Groups Projects
Commit 0eccde0c authored by David Fairbrother's avatar David Fairbrother
Browse files

Re #21741 Check for infinite or nan bin widths in VectorHelper

parent 174c7edc
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,10 @@ createAxisFromRebinParams(const std::vector<double> &params,
// Someone gave a 0-sized step! What a dope.
throw std::runtime_error(
"Invalid binning step provided! Can't creating binning axis.");
}
}
else if (!std::isfinite(xs)) {
throw std::runtime_error("An infinite or NaN value was found in the binning parameters.");
}
if ((xcurr + xs * (1.0 + lastBinCoef)) <= fullParams[ibound]) {
// If we can still fit current bin _plus_ specified portion of a last bin,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment