Skip to content

Commit a361ed0

Browse files
committed
Small change to make filter more robust
1 parent fafd7d9 commit a361ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ensemble/ensemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def calc_prediction(self, input_state=None, save_prediction=None):
433433
en_pred[list_crash[indx]] = deepcopy(en_pred[el])
434434

435435
# Convert ensemble specific result into pred_data, and filter for NONE data
436-
self.pred_data.extend([{typ: np.concatenate(tuple((el[ind][typ][:, np.newaxis]) for el in en_pred), axis=1)
436+
self.pred_data.extend([{typ: np.concatenate(tuple((np.atleast_2d(el[ind][typ]).T) for el in en_pred), axis=1)
437437
if any(elem is not None for elem in tuple((el[ind][typ]) for el in en_pred))
438438
else None for typ in en_pred[0][0].keys()} for ind in range(len(en_pred[0]))])
439439

0 commit comments

Comments
 (0)