From 0f32596c7cf3c3b23c276858b2281a233c729fc1 Mon Sep 17 00:00:00 2001
From: Michael <m.langguth@fz-juelich.de>
Date: Wed, 9 Jun 2021 16:43:14 +0200
Subject: [PATCH] Correction to extended quantile-panel-size.

---
 video_prediction_tools/postprocess/statistical_evaluation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/video_prediction_tools/postprocess/statistical_evaluation.py b/video_prediction_tools/postprocess/statistical_evaluation.py
index d677d58f..e011b401 100644
--- a/video_prediction_tools/postprocess/statistical_evaluation.py
+++ b/video_prediction_tools/postprocess/statistical_evaluation.py
@@ -76,7 +76,7 @@ def calculate_cond_quantiles(data_fcst: xr.DataArray, data_ref: xr.DataArray, fa
     bins_all = list(np.arange(int(data_all_min), int(data_all_max) + 1))
     bins_c_all = 0.5 * (np.asarray(bins_all[0:-1]) + np.asarray(bins_all[1:]))
     # initialize quantile data array
-    quantile_panel = xr.DataArray(np.full((nbins, nquantiles), np.nan),
+    quantile_panel = xr.DataArray(np.full((nbins_all, nquantiles), np.nan),
                                   coords={"bin_center": bins_c_all, "quantile": list(quantiles)},
                                   dims=["bin_center", "quantile"],
                                   attrs={"cond_var_name": data_cond_longname, "cond_var_unit": data_cond_unit,
-- 
GitLab