Constructor
new ExperimentHandler(attribs)
Constructor
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
attribs |
Object | associative array used to store the following parameters:
Properties
|
- Source:
Members
(static) Repository
Repositories
- Source:
experimentEnded
Properties
- Source:
Methods
addData()
Add the data with a given name to the current experiment.
Typically the user does not need to use this function; if you added
your data to the loop and had already added the loop to the
experiment then the loop will automatically inform the experiment
that it has received data.
Multiple data name/value pairs can be added to any given entry of
the data file and is considered part of the same entry until the
nextEntry() call is made.
e.g.::
#add some data for this trial
exp.addData('resp.rt', 0.8)
exp.addData('resp.key', 'k')
#end of trial - move to next line in data output
exp.nextEntry()
- Source:
addLoop()
Add a loop such as a :class:`~psychopy.data.TrialHandler` or :class:`~psychopy.data.StairHandler`
Data from this loop will be included in the resulting data files.
- Source:
getLoopAttributes(loop)
Returns the attribute names and values for the current trial of a particular loop.
Does not return data inputs from the subject, only info relating to the trial
execution.
Parameters:
Name | Type | Description |
---|---|---|
loop |
Object | the loop |
- Source:
nextEntry()
Calling nextEntry indicates to the ExperimentHandler that the
current trial has ended and so further addData() calls correspond
to the next trial.
- Source:
removeLoop()
Remove this loop from the list of unfinished loops, e.g. when it has completed
- Source:
(async) save()
Save the results of the experiment.
- Source: