CNSAnalysis/AdditionalAnalyses/calculateXYZ.py
def parseConfigFindList(stringFind,configFile):
    """parseConfigFindList inputs a particular string to find and read file after and a configuration file object
    outputs list of relevant filenames"""
    read = 0
    listOfItems = []
    for line in configFile:
        if line:
            if read == 1:
                if 'Stop' in line:
                    configFile.seek(0)
                    break # exit the function and return the list of files or list information
                listOfItems.append(line.strip('\n'))
            if stringFind in line:
                read = 1 # if find string specified, begin reading lines
    configFile.seek(0)
    return listOfItems
parseConfigFindList inputs a particular string to find and read file after and a configuration file object
    outputs list of relevant filenames
parseConfigFindList inputs a particular string to find and read file after and a configuration file object
outputs list of relevant filenames
parseConfigFindList inputs a particular string to find and read file after and a configuration file object outputs list of relevant filenames
def parseConfigFindList(stringFind,configFile):
    read = 0
    listOfItems = []
    for line in configFile:
        if line:
            if read == 1:
                if 'Stop' in line:
                    configFile.seek(0)
                    break 
                listOfItems.append(line.strip('\n'))
            if stringFind in line:
                read = 1 
    configFile.seek(0)
    return listOfItems
def parseConfigFindList ( stringFind , configFile ) : read = 0 listOfItems = [ ] for line in configFile : if line : if read == 1 : if 'Stop' in line : configFile . seek ( 0 ) break listOfItems . append ( line . strip ( '\n' ) ) if stringFind in line : read = 1 configFile . seek ( 0 ) return listOfItems
parseConfigFindList inputs a particular string to find and read file after and a configuration file object
outputs list of relevant filenames
parseConfigFindList inputs a particular string to find and read file after and a configuration file object outputs list of relevant filenames
"""parseConfigFindList inputs a particular string to find and read file after and a configuration file object
    outputs list of relevant filenames""" # exit the function and return the list of files or list information # if find string specified, begin reading lines
stringFind
configFile