diff --git a/mcc-flow/__main__.py b/mcc-flow/__main__.py new file mode 100644 index 0000000000000000000000000000000000000000..93d784fc5a913a00152add55dd534fef0dfb0155 --- /dev/null +++ b/mcc-flow/__main__.py @@ -0,0 +1,22 @@ +from downloadFilesOfNeuroFlowDevice import download_data +from merge_records import process_data_files_in_dir +from gui import show_message, select_folder_in_explorer + +TITLE = 'MCC Flow' + + +def main(): + path = select_folder_in_explorer( + 'Select a folder, where you want to download data from MCC Flow server.', + dialog_title='Save folder selection', + title=TITLE + ) + show_message('Give credentials in terminal!', TITLE) + path = download_data(path) + out_file = input('Type output file format ( edf / fif ) ') + process_data_files_in_dir(path, out_file) + print(f'Processed files are available in {path}') + + +if __name__ == '__main__': + main()