Skip to content

Commit 4ca8555

Browse files
committed
fix(synthetic): Generate synthetic stimuli
1 parent dc0b73d commit 4ca8555

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

synthetic/code/create_synthethic_ds.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# small bash script to create a synthethic BIDS data set
44

55
# defines where the BIDS data set will be created
6-
start_dir=$(pwd)
7-
raw_dir=${start_dir}/../
6+
code_dir=$( dirname $0 )
7+
raw_dir=$( dirname $code_dir )
88

99
subject_list='01 02 03 04 05'
1010
session_list='01'
@@ -23,10 +23,9 @@ create_raw_beh() {
2323
mkdir -p ${this_dir}
2424

2525
filename=${this_dir}/sub-${subject}_ses-${ses}_task-${task_name}${suffix}.tsv
26-
echo "trial\tresponse\treaction_time\tstim_file" >${filename}
27-
echo "congruent\tred\t1.435\timages/word-red_color-red.jpg" >>${filename}
28-
echo "incongruent\tred\t1.739\timages/word-red_color-blue.jpg" >>${filename}
29-
26+
echo -e "trial\tresponse\treaction_time\tstim_file" >${filename}
27+
echo -e "congruent\tred\t1.435\timages/word-red_color-red.jpg" >>${filename}
28+
echo -e "incongruent\tred\t1.739\timages/word-red_color-blue.jpg" >>${filename}
3029
}
3130

3231
# RAW DATASET
@@ -36,3 +35,7 @@ for subject in ${subject_list}; do
3635
done
3736

3837
done
38+
39+
mkdir -p ${raw_dir}/stimuli/images
40+
touch ${raw_dir}/stimuli/images/word-red_color-red.jpg
41+
touch ${raw_dir}/stimuli/images/word-red_color-blue.jpg

synthetic/stimuli/images/word-red_color-blue.jpg

Loading

synthetic/stimuli/images/word-red_color-red.jpg

Loading

0 commit comments

Comments
 (0)