Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options (randomize_item_locations and location_first_item) to visual-search-circle plugin #2897

Merged
merged 3 commits into from
Nov 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/plugins/visual-search-circle.md
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ The `target_present` and `fixation_image` parameters must always be specified. O
| fixation_duration | numeric | 1000 | How long to show the fixation image for before the search array (in milliseconds). |
| randomize_item_locations | bool | true | Whether to use randomized locations on the circle for the items. If `false`, then the first item will always show at the location specified by `location_first_item`.
| location_first_item | numeric | 0 | If `randomize_item_locations` is `false`, the location of the first item on the circle, in degrees.
| response_ends_trial| boolean | true | If true, the trial will end when the participant makes a response. |

## Data Generated

32 changes: 32 additions & 0 deletions packages/plugin-visual-search-circle/src/index.ts
Original file line number Diff line number Diff line change
@@ -112,6 +112,38 @@ const info = <const>{
pretty_name: "Location first item",
default: 0,
},
/** If true, the trial will end when the participant makes a response. */
response_ends_trial: {
type: ParameterType.BOOL,
default: true,
},
},
data: {
/** True if the participant gave the correct response. */
correct: {
type: ParameterType.BOOL,
},
/** Indicates which key the participant pressed. */
response: {
type: ParameterType.STRING,
},
/** The response time in milliseconds for the participant to make a response. The time is measured from when the stimulus first appears on the screen until the participant's response. */
rt: {
type: ParameterType.INT,
},
/** The number of items in the search array. */
set_size: {
type: ParameterType.INT,
},
/** True if the target is present in the search array. */
target_present: {
type: ParameterType.BOOL,
},
/** Array where each element is the pixel value of the center of an image in the search array. If the target is present, then the first element will represent the location of the target. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */
locations: {
type: ParameterType.INT,
array: true,
},
},
};

You are viewing a condensed version of this merge commit. You can view the full changes here.