Commit 56401a74 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

fix error with gcc on CI: missing explicit type

1 merge request!2refactor structure and proper cmake instructions
Pipeline #41677 failed with stage
in 2 minutes and 6 seconds
Showing with 7 additions and 7 deletions
+7 -7
...@@ -185,8 +185,8 @@ TEST(DeterministTests, TestMaskingConditions) ...@@ -185,8 +185,8 @@ TEST(DeterministTests, TestMaskingConditions)
// conditions on streamflow values _________________________________________ // conditions on streamflow values _________________________________________
// compute scores using masking conditions on streamflow to subset whole record // compute scores using masking conditions on streamflow to subset whole record
xt::xtensor<std::array<char, 32>, 1> q_conditions ={ xt::xtensor<std::array<char, 32>, 1> q_conditions = {
{"q_obs{<2000,>3000}"} std::array<char, 32> {"q_obs{<2000,>3000}"}
}; };
std::vector<xt::xarray<double>> metrics_q_conditioned = std::vector<xt::xarray<double>> metrics_q_conditioned =
...@@ -217,7 +217,7 @@ TEST(DeterministTests, TestMaskingConditions) ...@@ -217,7 +217,7 @@ TEST(DeterministTests, TestMaskingConditions)
// compute scores using masking conditions on streamflow to subset whole record // compute scores using masking conditions on streamflow to subset whole record
xt::xtensor<std::array<char, 32>, 1> q_conditions_ ={ xt::xtensor<std::array<char, 32>, 1> q_conditions_ ={
{"q_obs{>=mean}"} std::array<char, 32> {"q_obs{>=mean}"}
}; };
double mean = xt::mean(observed, {1})(); double mean = xt::mean(observed, {1})();
...@@ -250,7 +250,7 @@ TEST(DeterministTests, TestMaskingConditions) ...@@ -250,7 +250,7 @@ TEST(DeterministTests, TestMaskingConditions)
// compute scores using masking conditions on time indices to subset whole record // compute scores using masking conditions on time indices to subset whole record
xt::xtensor<std::array<char, 32>, 1> t_conditions = { xt::xtensor<std::array<char, 32>, 1> t_conditions = {
{"t{0,1,2,3,4,5:97,97,98,99}"} std::array<char, 32> {"t{0,1,2,3,4,5:97,97,98,99}"}
}; };
std::vector<xt::xarray<double>> metrics_t_conditioned = std::vector<xt::xarray<double>> metrics_t_conditioned =
......
...@@ -201,7 +201,7 @@ TEST(ProbabilistTests, TestMaskingConditions) ...@@ -201,7 +201,7 @@ TEST(ProbabilistTests, TestMaskingConditions)
// compute scores using masking conditions on streamflow to subset whole record // compute scores using masking conditions on streamflow to subset whole record
xt::xtensor<std::array<char, 32>, 2> q_conditions = { xt::xtensor<std::array<char, 32>, 2> q_conditions = {
{{"q_obs{<2000,>3000}"}} {std::array<char, 32> {"q_obs{<2000,>3000}"}}
}; };
std::vector<xt::xarray<double>> metrics_q_conditioned = std::vector<xt::xarray<double>> metrics_q_conditioned =
...@@ -234,7 +234,7 @@ TEST(ProbabilistTests, TestMaskingConditions) ...@@ -234,7 +234,7 @@ TEST(ProbabilistTests, TestMaskingConditions)
// compute scores using masking conditions on streamflow to subset whole record // compute scores using masking conditions on streamflow to subset whole record
xt::xtensor<std::array<char, 32>, 2> q_conditions_ = { xt::xtensor<std::array<char, 32>, 2> q_conditions_ = {
{{"q_prd_mean{>=median}"}} {std::array<char, 32> {"q_prd_mean{>=median}"}}
}; };
auto q_prd_mean = xt::mean(predicted, {0}, xt::keep_dims); auto q_prd_mean = xt::mean(predicted, {0}, xt::keep_dims);
...@@ -270,7 +270,7 @@ TEST(ProbabilistTests, TestMaskingConditions) ...@@ -270,7 +270,7 @@ TEST(ProbabilistTests, TestMaskingConditions)
// compute scores using masking conditions on time indices to subset whole record // compute scores using masking conditions on time indices to subset whole record
xt::xtensor<std::array<char, 32>, 2> t_conditions = { xt::xtensor<std::array<char, 32>, 2> t_conditions = {
{{"t{0,1,2,3,4,5:97,97,98,99}"}} {std::array<char, 32> {"t{0,1,2,3,4,5:97,97,98,99}"}}
}; };
std::vector<xt::xarray<double>> metrics_t_conditioned = std::vector<xt::xarray<double>> metrics_t_conditioned =
......
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