All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
sortDataLoggerFiles.py File Reference

Go to the source code of this file.

Classes

class  sortDataLoggerFiles.CycleCompareClass
 
class  sortDataLoggerFiles.FileNameParser
 
class  sortDataLoggerFiles.FileNameParser.ParsedNameClass
 
class  sortDataLoggerFiles.FileInfoClass
 
class  sortDataLoggerFiles.MinimumAccumulator
 

Namespaces

 sortDataLoggerFiles
 

Functions

def sortDataLoggerFiles.findFirstCycle
 
def sortDataLoggerFiles.extractFirstEvent
 
def sortDataLoggerFiles.detectFirstLogger
 
def sortDataLoggerFiles.buildFileIndex
 

Variables

string sortDataLoggerFiles.__doc__
 
string sortDataLoggerFiles.__author__ = 'Gianluca Petrillo (petrillo@slac.stanford.edu)'
 
string sortDataLoggerFiles.__date__ = 'February 22, 2022'
 
string sortDataLoggerFiles.__version__ = '1.3'
 
tuple sortDataLoggerFiles.parser = argparse.ArgumentParser(description=__doc__)
 
string sortDataLoggerFiles.help = 'input file lists [one from stdin by default]'
 
tuple sortDataLoggerFiles.duplGroup = parser.add_argument_group(title="duplicate file options")
 
string sortDataLoggerFiles.action = "store_true"
 
tuple sortDataLoggerFiles.args = parser.parse_args()
 
 sortDataLoggerFiles.printDuplicates = args.printduplicates
 
 sortDataLoggerFiles.skipDuplicates = args.skipDuplicates
 
 sortDataLoggerFiles.makeDuplicateList = args.duplicatelist
 
list sortDataLoggerFiles.sources = args.inputFilesifargs.inputFileselse[ "<stdin>" ]
 
tuple sortDataLoggerFiles.inputFiles
 
list sortDataLoggerFiles.preComments = []
 
list sortDataLoggerFiles.postComments = []
 
list sortDataLoggerFiles.fileInfo = []
 
list sortDataLoggerFiles.sourceNames = []
 
tuple sortDataLoggerFiles.isSingleFile = isinstance(file_, list)
 
tuple sortDataLoggerFiles.info = FileInfoClass(line, source=( iSource, None if isSingleFile else iLine + 1 ))
 
tuple sortDataLoggerFiles.Streams = list(set( info.stream for info in fileInfo ))
 
tuple sortDataLoggerFiles.firstPassFiles
 
tuple sortDataLoggerFiles.firstLogger = detectFirstLogger(firstPassFiles)
 
int sortDataLoggerFiles.nDuplicates = 0
 
tuple sortDataLoggerFiles.fileIndex = buildFileIndex(fileInfo)
 
list sortDataLoggerFiles.uniqueFiles = []
 
list sortDataLoggerFiles.duplicateFiles = []
 
list sortDataLoggerFiles.mainInfo = fileList[0]
 
list sortDataLoggerFiles.firstSource = mainInfo.source[0]
 
 sortDataLoggerFiles.fileListContent = uniqueFilesifskipDuplicateselsefileInfo
 
tuple sortDataLoggerFiles.outputFile = open(args.output, 'w')