Skip to content

Commit 4607aea

Browse files
Updating example csv & find_paths to match , usage
1 parent a418e1d commit 4607aea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

fooof/alternative_Compute_broadband.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def find_paths(main_dir, subject, extension, **kwargs):
100100
subject='mumo_002',
101101
extension='.asc',
102102
key1='OD1',
103-
selection=['Tr01'])
103+
selection=['Tr01', 'Tr04'])
104104
105105
Returns
106106
-------
@@ -147,7 +147,8 @@ def find_paths(main_dir, subject, extension, **kwargs):
147147
elif key == 'selection':
148148
if isinstance(value, list):
149149
selection = value
150-
elif isinstance(value,str):
150+
elif isinstance(value, str):
151+
selection = selection.replace((';',',')) # Step that convert ; to , (used in example.csv)
151152
selection = ast.literal_eval(value)
152153
assert isinstance(selection, list), 'Argument should end up being a list of Tr numbers strings'
153154
assert all(isinstance(item, str) for item in selection), 'Argument must be a list of of Tr numbers strings'

fooof/example_MEG_alternative.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Path;Case_ID;MM;Atlas;Start;End;Selection/path/to/subjects/;subjectID;Timepoint;;1;5;/path/to/subjects/;subjectID;Timepoint;;;;['Tr01','Tr02','Tr03','Tr04','Tr05']
1+
Path,Case_ID,MM,Atlas,Start,End,Selection/path/to/subjects/,subjectID,Timepoint,,1,5,/path/to/subjects/,subjectID,Timepoint,,,,['Tr01';'Tr02';'Tr03';'Tr04';'Tr05']

0 commit comments

Comments
 (0)