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: