climpred.classes.PredictionEnsemble.equals#
- PredictionEnsemble.equals(other: Union[PredictionEnsemble, Any]) bool [source]#
Check if
PredictionEnsemble
is equal to other.Two
PredictionEnsemble
are equal if they have matching variables and coordinates, all of which are equal.PredictionEnsembles
can still be equal (like pandas objects) if they have NaN values in the same locations. This method is necessary because v1 == v2 forPredictionEnsembles
does element-wise comparisons (like numpy.ndarrays).See also