From e4cd9a340d07f05e8bc28531d2f7d416b2665484 Mon Sep 17 00:00:00 2001 From: tillraab Date: Tue, 10 Sep 2019 16:35:19 +0200 Subject: [PATCH] bf --- electrode_check.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/electrode_check.py b/electrode_check.py index f04fc19..dd46f19 100644 --- a/electrode_check.py +++ b/electrode_check.py @@ -320,6 +320,11 @@ def main(): if (last_idx > index) and (index != -1): 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) + + + max = np.max(np.hstack(channel_data)) min = np.min(np.hstack(channel_data)) if init_fig == True: