Skip to content

Commit

Permalink
Only attempt to measure median of finite data
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeyers314 committed Dec 13, 2023
1 parent 612f92d commit 499b7f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/summit/utils/peekExposure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 499b7f9

Please sign in to comment.