Esempio n. 1
0
def main():
    print(Welcome.WELCOME)
    #Init visualization
    v = Visualization()
    #Ask the data to load
    data_file = input(Data.Q_DATA_2_LOAD)
    #Save the data file to the preprocessing class
    pp = Preprocessing(data_file)

    #Ask if the user wants to see the raw data
    v.show_raw_information(pp.raw)

    #Ask if the user wants to see les raw data time
    pp.decrease_time_channels()

    #Ask and apply a notch filter if required
    if (pp.notch_filter() == Notch_filter.APPLY_NOTCH_FILTER):
        #If the user has applied the filter, we ask if wants to see the results
        v.plot_data(pp.raw)

    #Ask and apply a bandpass filter if required
    bandpass_filter(pp)

    #Ask and apply an ica filter if required
    if (pp.ica_filter(v) == ICA_filter.APPLY_ICA_FILTER):
        print("TODO: Crec que s'ha de treure")