diff --git a/python/lsst/summit/utils/peekExposure.py b/python/lsst/summit/utils/peekExposure.py index 38f52ef5..8e643ed3 100644 --- a/python/lsst/summit/utils/peekExposure.py +++ b/python/lsst/summit/utils/peekExposure.py @@ -78,6 +78,7 @@ def mode_estimate(data, frac=0.5): mode : float Estimated mode of the data. """ + data = data[np.isfinite(data)] if len(data) == 0: return np.nan elif len(data) == 1: