Skip to content
Snippets Groups Projects
Commit 12a05477 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Scale::clipped check input

parent 8e76c25b
No related branches found
No related tags found
1 merge request!1861resolve last test failures in debug mode
......@@ -149,6 +149,8 @@ bool Scale::isScan() const
Scale Scale::clipped(double lower, double upper) const
{
if (lower > upper)
throw std::runtime_error("Scale::clipped called with invalid bounds (lower > upper)");
std::vector<Bin1D> out_bins;
const bool is_scan = isScan();
for (const Bin1D& b : m_bins)
......
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