diff --git a/oda_api/plot_tools.py b/oda_api/plot_tools.py index aea178af..ef2a692a 100644 --- a/oda_api/plot_tools.py +++ b/oda_api/plot_tools.py @@ -606,7 +606,7 @@ def build_fig(self, in_source_name='', systematic_fraction=0, ng_sig_limit=0, f plot_title = source_name _ = plt.title(plot_title) if find_excesses: - ind = numpy.abs(y - band_width)/dy > ng_sig_limit + ind = numpy.abs(y - meany) / std_dev > ng_sig_limit if numpy.sum(ind) > 0: _ = plt.plot(x[ind], y[ind], marker='x', color='red', linestyle='', markersize=10) self.logger.info('We found positive excesses on the lightcurve at times')