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

fix bug in unit test where region with NaN not fully discarded

No related merge requests found
Pipeline #38574 passed with stages
in 2 minutes and 22 seconds
Showing with 4 additions and 4 deletions
+4 -4
......@@ -204,12 +204,12 @@ TEST(DeterministTests, TestMissingData)
for (int m = 0; m < metrics.size(); m++) {
for (int p = 0; p < predicted.shape(0); p++) {
// compute metrics on subset of observations and predictions
// (i.e. eliminating region with NaN in observations manually)
// compute metrics on subset of observations and predictions (i.e.
// eliminating region with NaN in observations or predictions manually)
xt::xtensor<double, 1> obs =
xt::view(observed, 0, xt::range(3*(p+1), _));
xt::view(observed, 0, xt::range(20+(3*(p+1)), _));
xt::xtensor<double, 1> prd =
xt::view(predicted, p, xt::range(3*(p+1), _));
xt::view(predicted, p, xt::range(20+(3*(p+1)), _));
std::vector<xt::xarray<double>> metrics_sbs =
evalhyd::evald<xt::xtensor<double, 1>>(
......
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