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

Merge branch 'comment' into 'master'

Allow for comment lines in file-lists

See merge request !116
parents 6cbc7368 fbc54d69
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): ...@@ -87,6 +87,8 @@ class ListReader(object):
raise RuntimeError('File %s does not exist.' % (list_file,)) raise RuntimeError('File %s does not exist.' % (list_file,))
try: try:
for line in fileinput.input(list_file): for line in fileinput.input(list_file):
if line.strip().startswith('#'):
continue
parsed_line = re.findall('[\w/(-.)]+', line) parsed_line = re.findall('[\w/(-.)]+', line)
if len(parsed_line): if len(parsed_line):
# perform some sanity checks # perform some sanity checks
......
# Model samples
#Modelsamples
#data/model3_session1_sample1 3 3
data/model3_session1_sample1 3 3 data/model3_session1_sample1 3 3
data/model3_session1_sample2 3 3 data/model3_session1_sample2 3 3
data/model3_session1_sample3 3 3 data/model3_session1_sample3 3 3
......
...@@ -124,6 +124,8 @@ The following list files need to be created: ...@@ -124,6 +124,8 @@ The following list files need to be created:
filename client_id filename client_id
Please note that in all files, the lines starting with any number of white
space and ``#`` will be ignored.
Protocols and File Lists 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