pyesmda.check_nans_in_predictions¶
- pyesmda.check_nans_in_predictions(d_pred: ndarray[Any, dtype[float64]], assimilation_step: int) None[source]¶
Check and raise an exception if there is any NaNs in the input predictions array.
- Parameters
d_pred (npt.NDArray[np.float64]) – Input prediction vector(s).
assimilation_step (int) – Assimilation step index. 0 means before the first assimilation.
- Raises
Exception – Raised if NaNs are found. It indicates which ensemble members have incorrect predictions, and at which assimilaiton step.