Changeset 87ae9a3 in flex_extract.git


Ignore:
Timestamp:
Dec 14, 2018, 12:21:58 AM (3 months ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
dev
Children:
524ac32
Parents:
9aefaad
Message:

added possibility to write comments with '#' in to CONTROL files, either single lines with starting '#' or in the same line after parameter values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/classes/ControlFile.py

    r5c0a578 r87ae9a3  
    193193        # go through every line and store parameter
    194194        for ldata in fdata:
     195            if ldata and ldata[0] == '#':
     196                # ignore comment line in control file
     197                continue
     198            if '#' in ldata:
     199                # cut off comment
     200                ldata = ldata.split('#')[0]
    195201            data = ldata.split()
    196202            if len(data) > 1:
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG