Skip to content
Snippets Groups Projects
Commit 87ae9a33 authored by Anne Philipp's avatar Anne Philipp
Browse files

added possibility to write comments with '#' in to CONTROL files, either...

added possibility to write comments with '#' in to CONTROL files, either single lines with starting '#' or in the same line after parameter values
parent 9aefaadc
No related branches found
No related tags found
No related merge requests found
...@@ -192,6 +192,12 @@ class ControlFile(object): ...@@ -192,6 +192,12 @@ class ControlFile(object):
# go through every line and store parameter # go through every line and store parameter
for ldata in fdata: for ldata in fdata:
if ldata and ldata[0] == '#':
# ignore comment line in control file
continue
if '#' in ldata:
# cut off comment
ldata = ldata.split('#')[0]
data = ldata.split() data = ldata.split()
if len(data) > 1: if len(data) > 1:
if 'm_' in data[0].lower(): if 'm_' in data[0].lower():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment