Skip to content

Commit

Permalink
Skip scatterplot bin plot for non-finite sigMadY
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Feb 12, 2024
1 parent cf09fa8 commit cb62ce9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _scatterPlot(
sigMadYs = nanSigmaMad(ys)
# plot lone median point if there's not enough data to measure more
n_xs = len(xs)
if n_xs == 0:
if n_xs == 0 or not np.isfinite(sigMadYs):
continue
elif n_xs < 10:
xs = [nanMedian(xs)]
Expand Down

0 comments on commit cb62ce9

Please sign in to comment.