Skip to content
Snippets Groups Projects
Commit 07e19d1e authored by Camilla Compton's avatar Camilla Compton
Browse files

fix error: typo in refine.py plot_indicators bufs[1][0] swaps with y_ind

parent ab93ba1f
No related branches found
No related tags found
1 merge request!98Draft: WIP Positive/negative standard deviation refinement
This commit is part of merge request !98. Comments created here will be created in the context of that merge request.
...@@ -29,8 +29,8 @@ def plot_indicators(event, channel, refined_gps, threshold): ...@@ -29,8 +29,8 @@ def plot_indicators(event, channel, refined_gps, threshold):
y_ind, t_ind = bufs[1].yt() y_ind, t_ind = bufs[1].yt()
# calculate mean using first 5 seconds of y_ind data # calculate mean using first 5 seconds of y_ind data
samples = int(y_ind.sample_rate * 5) samples = int(bufs[1][0].sample_rate * 5)
locked_sample = bufs[1][0][:samples] locked_sample = y_ind[:samples]
locked_mean = np.mean(locked_sample) locked_mean = np.mean(locked_sample)
plt.rcParams['text.usetex'] = False plt.rcParams['text.usetex'] = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment