![]() Get the current marker position (or None if no response yet) getMouseResponses ( ) ¶ ![]() Both numerical and categoricalĬhoices are stored automatically in the history. The history can be retrieved at any time, allowing for continuous Return a list of the subject’s history as (rating, time) tuples. Single value (scalar) then this will be applied to all 3 channels. Respect to the stimulus’ current colorSpace. When color is specified using numbers, it is interpreted with numerically: (scalar or triplet) for DKL, RGB or.property foreColor ¶įoreground color of the stimulus Value should be one of: _flip) will give an array of 1s and -1s with which to multiply vertices. If set as a single value, will duplicate across both axes. property flip ¶ġx2 array for flipping vertices along each axis set as True to flip or False to not flip. The distance from the leftmost point on the slider to the rightmost point, and from the highest Set all elements of the Slider (labels, ticks, line) to a contrast Parameters :ĭraw the Slider, with all its constituent elements on this frame property extent ¶ (readonly) determines from labels and ticks whether the slider is categorical contrast ¶ Handle granularity for the rating property borderColor ¶ property categorical ¶ The rating info _granularRating ( rating ) ¶ Like 0.1 gives a limited fine-grained scale.Ĭolor ( labelColor /) – Color of the labels according to the color spaceįillColor ( markerColor /) – Color of the marker according to the color spaceīorderColor ( lineColor /) – Color of the line and ticks according to the color spaceĬalculates hitbox size and pos from own size and pos _getLineParams ( ) ¶Ĭalculates location and size of the line based on own location and size _getMarkerParams ( ) ¶Ĭalculates location and size of marker based on own location and size _getTickParams ( ) ¶Ĭalculates the locations of the line, tickLines and labels from Granularity ( int or float) – The smallest valid increments for the scale. Units ( the units to interpret the pos and size) –įlip ( bool) – By default the labels will be below or left of the line. This also controls whether the scale is horizontal or vertical. Size ( w, h pair ( tuple, array or list )) – The size for the scale defines the area taken up by the line and Pos ( XY pair ( tuple, array or list )) – Of ticks but with some values set to None Uneven distribution you should include a list matching the length If the labels can’t be distributedĪcross the ticks then an error will be raised. If you give 3 labels but 5 tick locations then the end and middle Labels ( a list or tuple) – The text to go with each tick (or spaced evenly across the ticks). ![]() These determine the locations of the ticks (the first and lastĭetermine the endpoints and the rest are spaced according to Ticks ( list or tuple) – A set of values for tick locations. Win ( ) – Into which the scale will be rendered GetRT() to get the decision time, or getHistory() to obtainįor other examples see Coder Demos -> stimuli -> ratingsNew.py. You can call the getRating() method anytime to get a rating, noResponse goes False (i.e., there is a response). draw()ĭisplays the rating scale, handles the subject’s mouse or key responses,Īnd updates the display. Method, with customizable appearance and response options. Slider ( win, ticks = (1, 2, 3, 4, 5), labels = None, startValue = None, pos = (0, 0), size = None, units = None, flip = False, ori = 0, style = 'rating', styleTweaks =, granularity = 0, readOnly = False, labelColor = 'White', markerColor = 'Red', lineColor = 'White', colorSpace = 'rgb', opacity = None, font = 'Helvetica Bold', depth = 0, name = None, labelHeight = None, labelWrapWidth = None, autoDraw = False, autoLog = True, color = False, fillColor = False, borderColor = False ) ¶Ī simpler alternative to RatingScale, to be customised with code ratherĪ RatingScale instance is a re-usable visual object having a draw() Resets the slider to its starting state (so that it can be restarted on each trial with a new stimulus)ĭetails ¶ class psychopy.visual. Instructs the rating scale to check for valid mouse responses. Return a list of the subject's history as (rating, time) tuples. Set all elements of the Slider (labels, ticks, line) to a contrast When the rating scale is read only no responses can be made and the scale contrast is reduced The position on the scale where the marker should be. Get the RT for most recent rating (or None if no response yet) Get the current value of rating (or None if no response yet) Slider(win)Ī class for obtaining ratings, e.g., on a 1-to-7 or categorical scale.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |