Commit 1b062e15 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

add missing check on threholds site dimension

Showing with 12 additions and 0 deletions
+12 -0
......@@ -257,6 +257,18 @@ namespace evalhyd
"numbers of sites"
);
}
if (q_thr_.size() > 0)
{
if (q_obs_.shape(0) != q_thr_.shape(0))
{
throw std::runtime_error(
"observations and thresholds feature different "
"numbers of sites"
);
}
}
if (t_msk_.size() > 0)
{
if (q_obs_.shape(0) != t_msk_.shape(0))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment