From a38a7d93425f42cda69ee0774d4fdc3f6099546c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=B6ll=C5=91d=20Csaba?= <kollod.csaba@itk.ppke.hu> Date: Thu, 5 Jan 2023 17:56:10 +0100 Subject: [PATCH] Release: main application - call form terminal as python -u mcc-flow --- mcc-flow/__main__.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mcc-flow/__main__.py diff --git a/mcc-flow/__main__.py b/mcc-flow/__main__.py new file mode 100644 index 0000000..93d784f --- /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() -- GitLab