def genIndex(folder,forceIDs=[]):
if not os.path.exists(folder+"<STR_LIT>"):<EOL><INDENT>print("<STR_LIT>")<EOL>return<EOL><DEDENT>timestart=cm.timethis()<EOL>files=glob.glob(folder+"<STR_LIT>") <EOL>files.extend(glob.glob(folder+"<STR_LIT>"))<EOL>print("<STR_LIT>"%(cm.timethis(timestart)*<NUM_LIT:1000>))<EOL>files.extend(genPNGs(folder,files))<EOL>files=sorted(files)<EOL>timestart=cm.timethis()<EOL>d=cm.getIDfileDict(files) <EOL>print("<STR_LIT>",len(d))<EOL>print("<STR_LIT>"%(cm.timethis(timestart)*<NUM_LIT:1000>))<EOL>groups=cm.getABFgroups(files)<EOL>print("<STR_LIT>",len(groups))<EOL>for ID in sorted(list(groups.keys())):<EOL><INDENT>overwrite=False<EOL>for abfID in groups[ID]:<EOL><INDENT>if abfID in forceIDs:<EOL><INDENT>overwrite=True<EOL><DEDENT><DEDENT>try:<EOL><INDENT>htmlABF(ID,groups[ID],d,folder,overwrite)<EOL><DEDENT>except:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT><DEDENT>menu=expMenu(groups,folder)<EOL>makeSplash(menu,folder)<EOL>makeMenu(menu,folder)<EOL>htmlFrames(d,folder)<EOL>makeMenu(menu,folder)<EOL>makeSplash(menu,folder)<EOL>
expects a folder of ABFs.