ATLAS Offline Software
|
Extract a table of data from a txt file. More...
Public Member Functions | |
def | getTable (self, filename, header=None, separator="\t") |
Private Member Functions | |
def | _defineTableDictKeys (self, header, fields, separator) |
Define the keys for the tabledict dictionary. More... | |
Extract a table of data from a txt file.
E.g. header="Time nprocs nthreads wtime stime utime pss rss swap vmem" or the first line in the file each of which will become keys in the dictionary, whose corresponding values are stored in lists, with the entries corresponding to the values in the rows of the input file. The output dictionary will have the format {'Time': [ .. data from first row .. ], 'VMEM': [.. data from second row], ..}
filename | name of input text file, full path (string). |
header | header string. |
separator | separator character (char). |
Definition at line 1500 of file trfUtils.py.
|
private |
Define the keys for the tabledict dictionary.
header | header string. |
fields | header content string. |
separator | separator character (char). |
Definition at line 1535 of file trfUtils.py.
def python.trfUtils.memFileToTable.getTable | ( | self, | |
filename, | |||
header = None , |
|||
separator = "\t" |
|||
) |
Definition at line 1502 of file trfUtils.py.