GetAllNumericalResults
Returns the list of all values (as a list of columns) in the Numerical Results Window of the first graphical view of the document.
Syntax
doc.GetAllNumericalResults()
Parameters
None.
Return
Returns the list of all values (as a list of columns) in the Numerical Results Window of the first graphical view of the document.
Note
GetAllNumericalResults() returns a list object with all the numerical results.
Each element of the list is a list containing results from a single column in Numerical Results table.
For example, to get the 10-th value of the first column of numerical results, use allNumRes[0][9]
(see Examples below).
You can also use global function nex.GetAllNumericalResults(doc)
:
import nex
doc = nex.GetActiveDocument()
nex.ApplyTemplate(doc, "PerieventHistograms")
allNumRes = nex.GetAllNumericalResults(doc)
Examples
Python
import nex
doc = nex.GetActiveDocument()
nex.ApplyTemplate(doc, "PerieventHistograms")
allNumRes = doc.GetAllNumericalResults()
# allNumRes now contains a list object with all numerical results.
# for example, to get the 10-th value of the first column of numerical results, use allNumRes[0][9]
# thus, allNumRes[0][9] equals to the result of nex.GetNumRes(doc, 10, 1)