def checkForDuplicateInputs(rootnames):
    """
    Check input files specified in ASN table for duplicate versions with
    multiple valid suffixes (_flt and _flc, for example).
    """

    flist = []
    duplist = []

    for fname in rootnames:
        # Look for any recognized CTE-corrected products
        f1 = fileutil.buildRootname(fname,ext=['_flc.fits'])
        f2 = fileutil.buildRootname(fname)
        flist.append(f2)
        if os.path.exists(f1) and f1 != f2:
            # More than 1 valid input found for this rootname
            duplist.append(f1)

    return flist,duplist
def checkForDuplicateInputs ( rootnames ) : flist = [ ] duplist = [ ] for fname in rootnames : f1 = fileutil . buildRootname ( fname , ext = [ '_flc.fits' ] ) f2 = fileutil . buildRootname ( fname ) flist . append ( f2 ) if os . path . exists ( f1 ) and f1 != f2 : duplist . append ( f1 ) return flist , duplist
Check input files specified in ASN table for duplicate versions with
    multiple valid suffixes (_flt and _flc, for example).