From a9feeda2b2936f0b541bc3f6efe27f50e4dd8f05 Mon Sep 17 00:00:00 2001 From: tillraab Date: Wed, 11 Sep 2019 11:34:27 +0200 Subject: [PATCH] bf --- electrode_check.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/electrode_check.py b/electrode_check.py index e7be922..28dcf01 100644 --- a/electrode_check.py +++ b/electrode_check.py @@ -336,16 +336,16 @@ def main(): channel_array = np.arange(channels) channel_data = list(map(lambda x : data[x::channels][:250], channel_array)) channel_std = list(map(lambda x : np.std(data[x::channels][:250]), channel_array)) - power_channel = np.argmax(channel_std) - print(power_channel) + power_channel = int(np.argmax(channel_std)) + # print(power_channel) max = np.max(np.hstack(channel_data)) min = np.min(np.hstack(channel_data)) if init_fig == True: for ch in channel_array: h, = axs[ch].plot(np.arange(250)[:len(channel_data[ch])] / rate, channel_data[ch], color='k') - # axs[ch].set_ylim(min - channel_std[power_channel], max + channel_std[power_channel]) - axs[ch].set_ylim(min, max) + axs[ch].set_ylim(min - channel_std[power_channel], max + channel_std[power_channel]) + # axs[ch].set_ylim(min, max) channel_handle.append(h) plt.show(block=False) init_fig = False