def main():
    for filename in args.inputFiles:
        processFile(filename)
        if (args.addCoordinates != ''):
            addCoordinates(filename, args.addCoordinates)
        if ('Nominal' in filename):
            print('>>> Attempting to find theory variation files')
            try:
                newfilename = filename.replace('Nominal', 'Up')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ''):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('Nominal', 'Up')))
            try:
                newfilename = filename.replace('Nominal', 'Down')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ''):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('Nominal', 'Down')))
            try:
                newfilename = filename.replace('_fixSigXSecNominal_hypotest', '_upperlimit')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ''):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('_fixSigXSecNominal_hypotest', '_upperlimit')))
            try:
                newfilename = filename.replace('_Nominal', '_upperlimit')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ''):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('_fixSigXSecNominal_hypotest', '_upperlimit')))
    if (not args.noAddTabs):
        cleanUpJSON()
    print('>>>')
    print('>>> Done!')
    print('>>>')
    return
def main():
    for filename in args.inputFiles:
        processFile(filename)
        if (args.addCoordinates != ):
            addCoordinates(filename, args.addCoordinates)
        if ('Nominal' in filename):
            print('>>> Attempting to find theory variation files')
            try:
                newfilename = filename.replace('Nominal', 'Up')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('Nominal', 'Up')))
            try:
                newfilename = filename.replace('Nominal', 'Down')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('Nominal', 'Down')))
            try:
                newfilename = filename.replace('_fixSigXSecNominal_hypotest', '_upperlimit')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('_fixSigXSecNominal_hypotest', '_upperlimit')))
            try:
                newfilename = filename.replace('_Nominal', '_upperlimit')
                if (newfilename == filename):
                    raise
                processFile(newfilename)
                if (args.addCoordinates != ):
                    addCoordinates(newfilename, args.addCoordinates)
            except:
                print((">>> WARNING: Can't find file: %s" % filename.replace('_fixSigXSecNominal_hypotest', '_upperlimit')))
    if (not args.noAddTabs):
        cleanUpJSON()
    print('>>>')
    print('>>> Done!')
    print('>>>')
    return