From 07e19d1e7ad5755e6357c923f4aa4c9f5f5abbbf Mon Sep 17 00:00:00 2001 From: Camilla Compton <camilla.compton@ligo.org> Date: Thu, 4 Jun 2020 10:56:56 -0700 Subject: [PATCH] fix error: typo in refine.py plot_indicators bufs[1][0] swaps with y_ind --- locklost/plugins/refine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locklost/plugins/refine.py b/locklost/plugins/refine.py index f93bca95..96065d77 100644 --- a/locklost/plugins/refine.py +++ b/locklost/plugins/refine.py @@ -29,8 +29,8 @@ def plot_indicators(event, channel, refined_gps, threshold): y_ind, t_ind = bufs[1].yt() # calculate mean using first 5 seconds of y_ind data - samples = int(y_ind.sample_rate * 5) - locked_sample = bufs[1][0][:samples] + samples = int(bufs[1][0].sample_rate * 5) + locked_sample = y_ind[:samples] locked_mean = np.mean(locked_sample) plt.rcParams['text.usetex'] = False -- GitLab