Skip to content
Snippets Groups Projects
Commit 4f449a5e authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Allow for comment lines in file-lists

parent 24f53216
No related branches found
No related tags found
1 merge request!116Allow for comment lines in file-lists
Pipeline #
......@@ -87,6 +87,8 @@ class ListReader(object):
raise RuntimeError('File %s does not exist.' % (list_file,))
try:
for line in fileinput.input(list_file):
if line.strip().startswith('#'):
continue
parsed_line = re.findall('[\w/(-.)]+', line)
if len(parsed_line):
# perform some sanity checks
......
# Model samples
#Modelsamples
#data/model3_session1_sample1 3 3
data/model3_session1_sample1 3 3
data/model3_session1_sample2 3 3
data/model3_session1_sample3 3 3
......
......@@ -124,6 +124,7 @@ The following list files need to be created:
filename client_id
Please note that in all files, the lines starting with ``#`` will be ignored.
Protocols and File Lists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment