Evidence package#
BreakResponse class#
- class CFSVM.Element.Evidence.BreakResponse(kwargs)#
Bases:
CFSVM.Element.ResponseElementInitiating and recording break data.
- Constructor Summary
- Property Summary
- RESULTS = {'response_time','response_choice','response_kbname'}#
Parameters to parse into the processed results table.
- Method Summary
- create_kbqueue()#
Creates PTB KbQueue.
For more information, check the PTB documentation.
- get(pressed, first_press)#
Processes response properties from the PTB KbQueue.
- Parameters:
pressed – Bool, whether any key was pressed.
first_press – PTB timing of presses.
ImgMAFC class#
- class CFSVM.Element.Evidence.ImgMAFC(kwargs)#
Bases:
CFSVM.Element.Evidence.ScaleEvidence,CFSVM.Element.Stimulus.StimulusInitiating and recording image mAFC data.
- Constructor Summary
- ImgMAFC(kwargs)#
- Parameters:
keys –
keys. Defaults to{'LeftArrow', 'RightArrow'}.title –
title. Defaults to'Which one have you seen?'.position –
positionDefaults to'Center'.size –
sizeDefaults to0.75.xy_ratio –
xy_ratioDefaults to1.rotation –
CFSVM.Element.Stimulus.Stimulus.rotation. Defaults to0.contrast –
CFSVM.Element.SpatialElement.contrast. Defaults to1.
- Property Summary
- RESULTS = {'response_time','response_choice','response_kbname','onset','img_indices'}#
Parameters to parse into the processed results table.
- img_indices#
Char arraywith images indices separated by spaces.
- rects#
Cell arrayof two arrays with size{[n_options,4]; [n_options,4]}.
- Method Summary
- load_parameters(screen, ptb_textures_indices, shown_texture_index)#
Loads parameters for mAFC screen for the trial.
- Parameters:
screen –
CustomScreenobject.ptb_textures_indices –
Cell arrayof ints representing loaded PTB textures.shown_texture_index –
Intrepresenting PTB texture shown as a stimulus.
- show(experiment)#
Draws and shows mAFC images, waits for the subject response and records it.
See also
record_response().- Parameters:
experiment – An experiment object.
PAS class#
- class CFSVM.Element.Evidence.PAS(kwargs)#
Bases:
CFSVM.Element.Evidence.ScaleEvidenceInitiating and recording PAS data.
- Constructor Summary
- Property Summary
- RESULTS = {'response_time','response_choice','response_kbname','onset'}#
Parameters to parse into the processed results table.
- left_text_start#
Nonnegative intfor the left screen.
- right_text_start#
`Nonnegative intfor the right screen.
- spacing#
Nonnegative intround(text_size/2).
- text_size#
Nonnegative int
- Method Summary
- load_parameters(screen)#
Loads PAS parameters for the trial.
- Parameters:
screen –
CustomScreenobject.
- show(experiment)#
Shows PAS screen, waits for the subject response and records it.
See also
record_response().- Parameters:
experiment – An experiment object.
ScaleEvidence class#
- class CFSVM.Element.Evidence.ScaleEvidence#
Bases:
CFSVM.Element.ResponseElement,CFSVM.Element.TemporalElementA base class for description of scale-based evidence classes like
PASandImgMAFC.
TextMAFC class#
- class CFSVM.Element.Evidence.TextMAFC(kwargs)#
Bases:
CFSVM.Element.Evidence.ScaleEvidenceInitiating and recording text mAFC data.
- Constructor Summary
- Property Summary
- RESULTS = {'response_time','response_choice','response_kbname','onset'}#
Parameters to parse into the processed results table.
- text_size#
Nonnegative int
- Method Summary
- show(experiment)#
Shows text version of mAFC, waits for the subject response and records it.
See also
CFSVM.Element.Evidence.ScaleEvidence.record_response().- Parameters:
experiment – An experiment object.