The data will be processed according to the child of DataSet named "ProcessData". By default the
data is unprocessed, but you can choose:
Caveat: if you process data "AsSuch", all channels will be processed that way.
editTree( tree )
tree
a qubtree.Node
returns
the same tree you passed in
Shows a graphical qubtree browser/editor.
Report( message )
message
Any object compatible with str(message)
Prints message to the Report window.
Dialog( caption, buttons, fields )
caption
a string for the title bar
buttons
a list of captions for the buttons at the bottom
fields
a list of Dialogs.DialogField
returns
a dictionary mapping field.name to value
Shows a dialog with text fields and radio buttons.
Look at result['button'] to find out which button was clicked.
Various types of fields are documented elsewhere.
CreateWizard()
Wizard
The user can still interact with other windows while the wizard is visible,
so a script can lead the user through a series of steps which require discernment
while automating the grunt work.
caption
message
buttons
show()
hide()
waitForButton()
DataView
[ index ]
currData
currIndex
selectedData
Data
fileName
dataChannelCount
activeChannel
lists
currResults
results
addResults( resultsTree )
resultsTree
a qubtree.Node with Results structure
Adds resultsTree to the list of results, as the last and selected item.
It becomes immediately available as thisData.currResults.
copyImage( options = {} )
options
a dictionary of settings that override the "Copy Image" dialog box.
Copies an image of the data to the clipboard. Options can be:
select( first, last )
getList( name )
name
the name of a selection list
Returns the contents of a selection list as a list of tuples (first, last).
setList( name, list )
name
the name of a selection list
list
a list of tuples (first, last)
Replaces the named selection list with a new list of intervals.
Creates the selection list if none exists by that name.
chooseList( name )
name
the name of a selection list
Brings the named selection list to the front; makes it the current list.
Data.lists
[ index ]
currList
currIndex
delete( index )
indexOf( name )
byName( name )
choose( index )
rename( index, name )
SelectionList
[ index ]
asTree
setFromTree( tree )
add( first, last )
delete( index )
rename( index, name )
clear()
Data.results
[ index ]
add( resultsTree )
resultsTree
a qubtree.Node
Adds the results tree and brings it to the front.
delete( index )
choose( index )
ModelView
Acts as a list of all open models.
[ index ]
currModel
currIndex
New()
returns
True on failure
Creates a new Model document with the specified name.
Choose()
makeNewRate()
returns
qubtree.Node
Returns a "Rate" node to add to a Model tree. The rate is filled with the visual defaults,
but the State indices are uninitialized.
Model
copyImage( options = {} )
options
a dictionary of settings to override the "Copy Image" dialog box
Copies an image of the model to the clipboard. Options can be:
CalcPeq()
EnforceConstraints()
getAsNode()
returns
a qubtree.Node with all the info from the model
The result is a copy of the model; changes will not be reflected.
setAsNode( modelTree )
modelTree
a qubtree.Node such as is returned from getAsNode().
Replaces the contents of the model with the contents of modelTree.
ResultsView
Acts as a list of all open Results documents.
currResults
selectedResults
[ index ]
addResults( resultsTree )
resultsTree
a qubtree.Node with structure Results.
Adds a Results document using resultsTree under the name resultsTree.name.
For lame technical reasons, the new Results will not be immediately available so don't try it.
Results
node
fileName
visibleVars
segmentCount
numSD
chosenColor
usedColors
colorCounts
criteria
chartCount
[ varName ]
keys()
updateSelection()
Only necessary if visual updates have been turned off with doUpdates(0).
doUpdates( yesno )
segment( index )
segmentColor( i )
setSegmentColor( i, c )
segmentsOfColor( c )
copyChartImage( i )
ResultsVar
Acts as a list of values, indexed by segment.
yIsLog
xStyle
1: chart seg start time vs. value
2: chart as a histogram
units
[ seg_index ]
If yIsLog, returns the log value.
mean( color_index )
sd( color_index )
count( color_index )
GetDataSource()
SetDataSource( src )
getChosenData()
getChosenIdealization()
fillData( Node )
>>> dataset['ProcessData'].data = 'AsDisplayed'
-- or --
>>> processData = dataset['ProcessData']
>>> processData.data = 'AsSuch'
>>> processData['Filter'].data = 1 # i.e. true
>>> processData['FilterFreq'].data = 5000.0
>>> processData['Baseline'].data = 0 # i.e. false
fillDataCh( Node )
Simulation
Modeling
Preprocessing
Lists
Sound
Scripts
>>> MIL = QUB.Modeling['MIL Rates']
>>> MIL()
# simulate a left-click on MIL
>>> MIL.RClick()
# simulate a right-click on MIL
>>> tree = MIL.Properties()
# get MIL's current settings
>>> MIL.Properties(tree)
# change MIL's current settings