@@ -12,7 +12,6 @@ def _crps_ensemble_int_w_gufunc(
1212 obs : np .ndarray , fct : np .ndarray , w : np .ndarray , out : np .ndarray
1313):
1414 """CRPS estimator based on the integral form."""
15- obs = obs [0 ]
1615
1716 if np .isnan (obs ):
1817 out [0 ] = np .nan
@@ -52,7 +51,6 @@ def _crps_ensemble_qd_w_gufunc(
5251 obs : np .ndarray , fct : np .ndarray , w : np .ndarray , out : np .ndarray
5352):
5453 """CRPS estimator based on the quantile decomposition form."""
55- obs = obs [0 ]
5654
5755 if np .isnan (obs ):
5856 out [0 ] = np .nan
@@ -76,7 +74,6 @@ def _crps_ensemble_nrg_w_gufunc(
7674 obs : np .ndarray , fct : np .ndarray , w : np .ndarray , out : np .ndarray
7775):
7876 """CRPS estimator based on the energy form."""
79- obs = obs [0 ]
8077 M = fct .shape [- 1 ]
8178
8279 if np .isnan (obs ):
@@ -99,7 +96,6 @@ def _crps_ensemble_fair_w_gufunc(
9996 obs : np .ndarray , fct : np .ndarray , w : np .ndarray , out : np .ndarray
10097):
10198 """Fair version of the CRPS estimator based on the energy form."""
102- obs = obs [0 ]
10399 M = fct .shape [- 1 ]
104100
105101 if np .isnan (obs ):
@@ -124,7 +120,6 @@ def _crps_ensemble_pwm_w_gufunc(
124120 obs : np .ndarray , fct : np .ndarray , w : np .ndarray , out : np .ndarray
125121):
126122 """CRPS estimator based on the probability weighted moment (PWM) form."""
127- obs = obs [0 ]
128123
129124 if np .isnan (obs ):
130125 out [0 ] = np .nan
@@ -150,7 +145,6 @@ def _crps_ensemble_akr_w_gufunc(
150145):
151146 """CRPS estimaton based on the approximate kernel representation."""
152147 M = fct .shape [- 1 ]
153- obs = obs [0 ]
154148 e_1 = 0
155149 e_2 = 0
156150 for i , forecast in enumerate (fct ):
@@ -167,7 +161,6 @@ def _crps_ensemble_akr_circperm_w_gufunc(
167161):
168162 """CRPS estimaton based on the AKR with cyclic permutation."""
169163 M = fct .shape [- 1 ]
170- obs = obs [0 ]
171164 e_1 = 0.0
172165 e_2 = 0.0
173166 for i , forecast in enumerate (fct ):
@@ -187,8 +180,6 @@ def _owcrps_ensemble_nrg_w_gufunc(
187180 out : np .ndarray ,
188181):
189182 """Outcome-weighted CRPS estimator based on the energy form."""
190- obs = obs [0 ]
191- ow = ow [0 ]
192183 M = fct .shape [- 1 ]
193184
194185 if np .isnan (obs ):
@@ -218,8 +209,6 @@ def _vrcrps_ensemble_nrg_w_gufunc(
218209 out : np .ndarray ,
219210):
220211 """Vertically re-scaled CRPS estimator based on the energy form."""
221- obs = obs [0 ]
222- ow = ow [0 ]
223212 M = fct .shape [- 1 ]
224213
225214 if np .isnan (obs ):
0 commit comments