Classes | |
class | CycleCompareClass |
class | FileNameParser |
class | FileInfoClass |
class | MinimumAccumulator |
Functions | |
def | findFirstCycle |
def | extractFirstEvent |
def | detectFirstLogger |
def | buildFileIndex |
Variables | |
string | __doc__ |
string | __author__ = 'Gianluca Petrillo (petrillo@slac.stanford.edu)' |
string | __date__ = 'February 22, 2022' |
string | __version__ = '1.3' |
tuple | parser = argparse.ArgumentParser(description=__doc__) |
string | help = 'input file lists [one from stdin by default]' |
tuple | duplGroup = parser.add_argument_group(title="duplicate file options") |
string | action = "store_true" |
tuple | args = parser.parse_args() |
printDuplicates = args.printduplicates | |
skipDuplicates = args.skipDuplicates | |
makeDuplicateList = args.duplicatelist | |
list | sources = args.inputFilesifargs.inputFileselse[ "<stdin>" ] |
tuple | inputFiles |
list | preComments = [] |
list | postComments = [] |
list | fileInfo = [] |
list | sourceNames = [] |
tuple | isSingleFile = isinstance(file_, list) |
tuple | info = FileInfoClass(line, source=( iSource, None if isSingleFile else iLine + 1 )) |
tuple | Streams = list(set( info.stream for info in fileInfo )) |
tuple | firstPassFiles |
tuple | firstLogger = detectFirstLogger(firstPassFiles) |
int | nDuplicates = 0 |
tuple | fileIndex = buildFileIndex(fileInfo) |
list | uniqueFiles = [] |
list | duplicateFiles = [] |
list | mainInfo = fileList[0] |
list | firstSource = mainInfo.source[0] |
fileListContent = uniqueFilesifskipDuplicateselsefileInfo | |
tuple | outputFile = open(args.output, 'w') |
def sortDataLoggerFiles.buildFileIndex | ( | fileInfo | ) |
Definition at line 310 of file sortDataLoggerFiles.py.
def sortDataLoggerFiles.detectFirstLogger | ( | fileInfo | ) |
Definition at line 285 of file sortDataLoggerFiles.py.
def sortDataLoggerFiles.extractFirstEvent | ( | filePath | ) |
Definition at line 260 of file sortDataLoggerFiles.py.
def sortDataLoggerFiles.findFirstCycle | ( | files, | |
stream | |||
) |
Definition at line 240 of file sortDataLoggerFiles.py.
string sortDataLoggerFiles.__author__ = 'Gianluca Petrillo (petrillo@slac.stanford.edu)' |
Definition at line 48 of file sortDataLoggerFiles.py.
string sortDataLoggerFiles.__date__ = 'February 22, 2022' |
Definition at line 49 of file sortDataLoggerFiles.py.
string sortDataLoggerFiles.__doc__ |
Definition at line 25 of file sortDataLoggerFiles.py.
string sortDataLoggerFiles.__version__ = '1.3' |
Definition at line 50 of file sortDataLoggerFiles.py.
string sortDataLoggerFiles.action = "store_true" |
Definition at line 345 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.args = parser.parse_args() |
Definition at line 364 of file sortDataLoggerFiles.py.
Definition at line 341 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.duplicateFiles = [] |
Definition at line 433 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.fileIndex = buildFileIndex(fileInfo) |
Definition at line 431 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.fileInfo = [] |
Definition at line 388 of file sortDataLoggerFiles.py.
sortDataLoggerFiles.fileListContent = uniqueFilesifskipDuplicateselsefileInfo |
Definition at line 466 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.firstLogger = detectFirstLogger(firstPassFiles) |
Definition at line 419 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.firstPassFiles |
Definition at line 416 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.firstSource = mainInfo.source[0] |
Definition at line 442 of file sortDataLoggerFiles.py.
Definition at line 331 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.info = FileInfoClass(line, source=( iSource, None if isSingleFile else iLine + 1 )) |
Definition at line 393 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.inputFiles |
Definition at line 379 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.isSingleFile = isinstance(file_, list) |
Definition at line 391 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.mainInfo = fileList[0] |
Definition at line 436 of file sortDataLoggerFiles.py.
sortDataLoggerFiles.makeDuplicateList = args.duplicatelist |
Definition at line 373 of file sortDataLoggerFiles.py.
int sortDataLoggerFiles.nDuplicates = 0 |
Definition at line 430 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.outputFile = open(args.output, 'w') |
Definition at line 476 of file sortDataLoggerFiles.py.
tuple sortDataLoggerFiles.parser = argparse.ArgumentParser(description=__doc__) |
Definition at line 327 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.postComments = [] |
Definition at line 387 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.preComments = [] |
Definition at line 386 of file sortDataLoggerFiles.py.
sortDataLoggerFiles.printDuplicates = args.printduplicates |
Definition at line 371 of file sortDataLoggerFiles.py.
sortDataLoggerFiles.skipDuplicates = args.skipDuplicates |
Definition at line 372 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.sourceNames = [] |
Definition at line 389 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.sources = args.inputFilesifargs.inputFileselse[ "<stdin>" ] |
Definition at line 376 of file sortDataLoggerFiles.py.
Definition at line 407 of file sortDataLoggerFiles.py.
list sortDataLoggerFiles.uniqueFiles = [] |
Definition at line 432 of file sortDataLoggerFiles.py.