Commit 5e9c88e0 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

fix wrong ranks in contingency metrics

Showing with 2 additions and 6 deletions
+2 -6
......@@ -46,7 +46,7 @@ namespace evalhyd
/// Alerts based on forecast.
/// shape: (sites, lead times, levels, thresholds, time)
inline xt::xtensor<double, 5> calc_a_k(
const xt::xtensor<double, 3>& sum_f_k,
const xt::xtensor<double, 4>& sum_f_k,
std::size_t n_mbr
)
{
......@@ -235,10 +235,6 @@ namespace evalhyd
namespace metrics
{
// -----------------------------------------------------------------
// Accuracy
// -----------------------------------------------------------------
namespace detail
{
template <class XD2>
......@@ -256,7 +252,7 @@ namespace evalhyd
)
{
// initialise output variable
xt::xtensor<double, 4> METRIC =
xt::xtensor<double, 6> METRIC =
xt::zeros<double>({n_sit, n_ldt, n_msk, n_exp,
n_mbr + 1, n_thr});
......
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