Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Sep 17, 2023
1 parent ccd109f commit c915c63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions tests/create_dummy_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def create_raw_func_vismotion(target_dir, sub, ses):

create_events_tsv(
filename=this_dir / f"{basename}_run-1_events.tsv",
onset=[2, 2],
onset=[2, 4],
duration=[2, 2],
trial_type=["VisMot", "VisStat"],
)
Expand All @@ -70,8 +70,8 @@ def create_raw_func_vismotion(target_dir, sub, ses):

create_events_tsv(
filename=this_dir / f"{basename}_run-2_events.tsv",
onset=[3, 2],
duration=[6, 2],
onset=[3, 6],
duration=[2, 2],
trial_type=["VisStat", "VisMot"],
)

Expand All @@ -80,8 +80,8 @@ def create_raw_func_vismotion(target_dir, sub, ses):
for run in [1, 2]:
create_events_tsv(
filename=this_dir / f"{basename}_acq-1p60mm_run-{run}_events.tsv",
onset=[4, 2],
duration=[8, 2],
onset=[4, 8],
duration=[2, 2],
trial_type=["VisMot", "VisStat"],
)
touch(this_dir / f"{basename}_acq-1p60mm_dir-PA_run-{run}_{suffix}.nii")
Expand Down
10 changes: 7 additions & 3 deletions tests/tests_QA/test_computeDesignEfficiency.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ function test_computeDesignEfficiency_vislocalizer()

close all;

opt = setOptions('vismotion', '01');
subject = '01';

opt = setOptions('vismotion', subject);

BIDS = bids.layout(opt.dir.input, ...
'use_schema', false, ...
Expand All @@ -28,9 +30,11 @@ function test_computeDesignEfficiency_vislocalizer()
opt.TR = metadata{1}.RepetitionTime;

eventsFile = bids.query(BIDS, 'data', ...
'sub', opt.subjects, ...
'sub', subject, ...
'ses', '01', ...
'task', opt.taskName, ...
'acq', '', ...
'run', 1, ...
'suffix', 'events');

e = computeDesignEfficiency(eventsFile{1}, opt);
Expand Down Expand Up @@ -73,7 +77,7 @@ function test_computeDesignEfficiency_vislocalizer()
for iBlock = 1:nbBlocks
for cdt = 1:numel(conditions)
for iTrial = 1:stimPerBlock
trial_type{end + 1} = conditions{cdt};
trial_type{end + 1} = conditions{cdt}; %#ok<*AGROW>
onset(end + 1) = time;
duration(end + 1) = stimDuration;
time = time + stimDuration + ISI;
Expand Down

0 comments on commit c915c63

Please sign in to comment.