Table of Contents
Creates a table of Run number against the log values for that run for a range of files. It can use a single log value or a list of log values.
Name | Direction | Type | Default | Description |
---|---|---|---|---|
FirstFile | Input | string | Mandatory | The first file to load from. Allowed values: [‘nxs’, ‘raw’] |
LastFile | Input | string | Mandatory | The Last file to load from, must be in the same directory, all files in between will also be used. Allowed values: [‘nxs’, ‘raw’] |
LogNames | Input | str list | The comma seperated list of properties to include. The full list will be printed if an invalid value is used. | |
OutputWorkspace | Output | Workspace | Mandatory | Table of results |
Creates a table workspace of the average values of log values against the run number.
There are special cases for:
It should:
Example:
def print_table_workspace(wsOut):
for i in range(wsOut.columnCount()):
print wsOut.getColumnNames()[i],
print
for rowIndex in range(wsOut.columnCount()):
for i in range(wsOut.columnCount()):
print wsOut.column(i)[rowIndex],
print
wsComment = LoadLogPropertyTable(FirstFile = "MUSR00015189.nxs",
LastFile = "MUSR00015193.nxs", LogNames="comment")
print "The comments of all the files"
print_table_workspace(wsComment)
wsMultiple = LoadLogPropertyTable(FirstFile = "MUSR00015189.nxs",
LastFile = "MUSR00015193.nxs", LogNames="Temp_Sample,dur")
print "\nThe Temp_Sample and dur logs"
print_table_workspace(wsMultiple)
Output:
The comments of all the files
RunNumber comment
15189 18.95MHz 100W
15190 18.95MHz 100W
The Temp_Sample and dur logs
RunNumber Temp_Sample dur
15189 0.0 100
15190 0.0 100
15191 0.0 101
Categories: Algorithms | DataHandling\Logs | Muon\DataHandling
Python: LoadLogPropertyTable.py