diff --git a/README.rst b/README.rst index 92160f9..f27278a 100644 --- a/README.rst +++ b/README.rst @@ -155,11 +155,35 @@ Data organisation ------------------- The file is just an output of MedAssociate software. -The path directorie must contains the sub_directories of sessions that containing -the raw data files and returns a csv file. +The path directorie can contains the sub_directories of sessions that containing +the raw data files, or just Medassociate files. + .. warning:: Your raw data directories must only contain med output files. +Example of data organisation for batch run +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. note:: + + Experiment directorie/ + └── dir 01 + ├── file_med_associates_to_compil + ├── file_med_associates_to_compil + └── file_med_associates_to_compil + └── dir 02 + ├── file_med_associates_to_compil + ├── file_med_associates_to_compil + └── file_med_associates_to_compil + + or + + Experiment directorie/ + ├── file_med_associates_to_compil + ├── file_med_associates_to_compil + └── file_med_associates_to_compil + + Example ----------------- @@ -317,6 +341,7 @@ Acknowledgments * `Université de Poitiers `_ * `INSERM `_ * `Logo FreeVector.com `_ +* Thanks to our old contributors as Ekter, Myriam Hanna. .. raw:: html diff --git a/med_to_csv/expe_med_to_csv.py b/med_to_csv/expe_med_to_csv.py index c8c78da..6b056ec 100644 --- a/med_to_csv/expe_med_to_csv.py +++ b/med_to_csv/expe_med_to_csv.py @@ -43,6 +43,9 @@ def main(path: str, output_file: str, opt:Dict)->pd.DataFrame: raise RuntimeError( f"""You have chosen to stop the execution after the following error: {err}""") from err + elif ptah.isfile(f"{path}/{listd[i]}") : + output_df = read_path(f"{path}/", opt) + break else : print(f"""The file {listd[i]} won't be analyzed""") except FileNotFoundError as e: