Skip to content

Commit 04da743

Browse files
committed
Another bug fix with the ML HPC run.
1 parent dea53eb commit 04da743

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
@@ -611,7 +611,7 @@ def calc_ml_prediction(self, input_state=None):
611611
en_pred[list_crash[indx]] = deepcopy(en_pred[el])
612612

613613
# Convert ensemble specific result into pred_data, and filter for NONE data
614-
ml_pred_data.append([{typ: np.concatenate(tuple((el[ind][typ][:, np.newaxis]) for el in en_pred), axis=1)
614+
ml_pred_data.append([{typ: np.concatenate(tuple((np.atleast_2d(el[ind][typ]).T) for el in en_pred), axis=1)
615615
if any(elem is not None for elem in tuple((el[ind][typ]) for el in en_pred))
616616
else None for typ in en_pred[0][0].keys()} for ind in range(len(en_pred[0]))])
617617

0 commit comments

Comments
 (0)