Skip to content

Commit 3d09518

Browse files
committed
Lots of refactoring.
1 parent ea5b513 commit 3d09518

File tree

10 files changed

+302
-243
lines changed

10 files changed

+302
-243
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22
A PsychoPy implementation of the Stanford VPN lab's functional localizer task.
33

44
This implementation is not associated with the VPN lab, so any bugs are our own.
5-
The Python code for this task is released under our selected license, but the stimuli for the task must be taken from the VPN lab's [fLoc repository](https://github.com/VPNL/fLoc), and any use of the stimuli should include an acknowledgement in any resulting research products (see [here](https://github.com/VPNL/fLoc#citation)).
5+
The Python code for this task is released under our selected license,
6+
but the stimuli for the task must be taken from the VPN lab's [fLoc repository](https://github.com/VPNL/fLoc),
7+
and any use of the stimuli should include an acknowledgement in any resulting research products
8+
(see [here](https://github.com/VPNL/fLoc#citation)).
9+
10+
Please download the stimuli from that repository and place them in a folder named "stimuli" in the same folder as `fLoc.py` and `config.json`.
611

712
## Implementation information
813

914
This functional localizer task uses a mini-block design with different categories of images.
10-
To keep participants focused on the task, there is also a behavioral task that participants will perform throughout the localizer.
15+
To keep participants focused on the task,
16+
there is also a behavioral task that participants will perform throughout the localizer.
1117
There are three options for this task: oddball, one-back, and two-back.
1218

1319
### Differences from the original task
1420

15-
While we have attempted to maximize similarity between this task and the VPN lab's task, there are differences.
21+
While we have attempted to maximize similarity between this task and the VPN lab's task,
22+
there are differences.
23+
I'm not sure what those differences are, unfortunately.

bids/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# bids
2+
3+
BIDS JSON files for the different fLoc tasks.

config.json

Lines changed: 0 additions & 83 deletions
This file was deleted.

config.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Constants that control the timing of the task
2+
constants:
3+
# Countdown presented at the beginning of each run, in seconds
4+
COUNTDOWN_DURATION: 12
5+
# Final screen presented at the end of each run, in seconds
6+
END_SCREEN_DURATION: 2
7+
# How long each stimulus is presented, in seconds
8+
IMAGE_DURATION: 0.4
9+
# Number of single-category blocks
10+
N_BLOCKS: 36
11+
# Number of stimuli per block
12+
N_STIMULI_PER_BLOCK: 12
13+
# How long to wait after start of presentation of stimulus to accept response
14+
RESPONSE_WINDOW: 1
15+
# Interstimulus interval
16+
TARGET_ISI: 0.1
17+
# Proportion of trials in which to do the task
18+
TASK_RATE: 0.5
19+
# Total run duration, in seconds
20+
TOTAL_DURATION: 240
21+
# The different sets of categories that determine which stimuli are used
22+
category_sets:
23+
# The default categories
24+
default:
25+
baseline: null
26+
bodies:
27+
- body
28+
characters:
29+
- word
30+
faces:
31+
- adult
32+
objects:
33+
- car
34+
places:
35+
- house
36+
scrambled:
37+
- scrambled
38+
# The alternate categories
39+
alternate:
40+
baseline: null
41+
bodies:
42+
- limb
43+
characters:
44+
- number
45+
faces:
46+
- child
47+
objects:
48+
- instrument
49+
places:
50+
- corridor
51+
scrambled:
52+
- scrambled
53+
# Both sets of categories combined
54+
both:
55+
baseline: null
56+
bodies:
57+
- body
58+
- limb
59+
characters:
60+
- word
61+
- number
62+
faces:
63+
- adult
64+
- child
65+
objects:
66+
- car
67+
- instrument
68+
places:
69+
- house
70+
- corridor
71+
scrambled:
72+
- scrambled

environment.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: fLoc
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.10
6+
- numpy
7+
- pandas
8+
- pip
9+
- pip:
10+
- psychopy=23.2.3
11+
- pygame
12+
- yaml

0 commit comments

Comments
 (0)