def processTournament (tournamentDir): ''' Iterates through game logs found in tournamentDir, extracting data from each. ''' for statelog in ti.stateLogIter(tournamentDir): print(statelog) extractData(str(statelog))
def datafileIter (tournamentDir, extractorClass, dataPrefix, extractorOptions='', logtype='sim', force=False, logtoolDir = "../logtool-examples/"): ''' Iterates through game logs found in tournamentDir, extracting production and consumption data ''' return (extractData(str(statelog), extractorClass, dataPrefix, extractorOptions, logtype, force, logtoolDir) for statelog in ti.stateLogIter(tournamentDir, sessionType=logtype))
def datafileIter(tournamentDir, extractorClass, dataPrefix, extractorOptions='', logtype='sim', force=False, logtoolDir="../logtool-examples/"): ''' Iterates through game logs found in tournamentDir, extracting production and consumption data ''' return ( extractData(str(statelog), extractorClass, dataPrefix, extractorOptions, logtype, force, logtoolDir) for statelog in ti.stateLogIter(tournamentDir, sessionType=logtype))