Commit c8ec7ea0 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

add check on metrics validity in determinist too

Showing with 7 additions and 0 deletions
+7 -0
...@@ -36,6 +36,13 @@ namespace evalhyd ...@@ -36,6 +36,13 @@ namespace evalhyd
const A& obs = q_obs.derived_cast(); const A& obs = q_obs.derived_cast();
const A& sim = q_sim.derived_cast(); const A& sim = q_sim.derived_cast();
// check that the metrics to be computed are valid
utils::check_metrics(
metrics,
{"NSE"}
);
// instantiate determinist evaluator
eh::determinist::Evaluator<A> evaluator(obs, sim); eh::determinist::Evaluator<A> evaluator(obs, sim);
// declare maps for memoisation purposes // declare maps for memoisation purposes
......
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