Skip to content

Commit c2205e1

Browse files
committed
Add second session to test spec.
1 parent bb660d2 commit c2205e1

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed

sdcflows/utils/tests/test_wrangler.py

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,132 @@ def gen_layout(bids_dir, database_dir=None):
420420
},
421421
],
422422
},
423+
{
424+
"session": "02",
425+
"anat": [{"suffix": "T1w", "metadata": {"EchoTime": 1}}],
426+
"func": [
427+
{
428+
"task": "rest",
429+
"echo": "1",
430+
"part": "mag",
431+
"suffix": "bold",
432+
"metadata": {
433+
"EchoTime": 0.0142,
434+
"RepetitionTime": 0.8,
435+
"TotalReadoutTime": 0.5,
436+
"PhaseEncodingDirection": "j",
437+
"IntendedFor": [
438+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
439+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
440+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
441+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
442+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
443+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
444+
],
445+
},
446+
},
447+
{
448+
"task": "rest",
449+
"echo": "1",
450+
"part": "phase",
451+
"suffix": "bold",
452+
"metadata": {
453+
"EchoTime": 0.0142,
454+
"RepetitionTime": 0.8,
455+
"TotalReadoutTime": 0.5,
456+
"PhaseEncodingDirection": "j",
457+
"IntendedFor": [
458+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
459+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
460+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
461+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
462+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
463+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
464+
],
465+
},
466+
},
467+
{
468+
"task": "rest",
469+
"echo": "2",
470+
"part": "mag",
471+
"suffix": "bold",
472+
"metadata": {
473+
"EchoTime": 0.03893,
474+
"RepetitionTime": 0.8,
475+
"TotalReadoutTime": 0.5,
476+
"PhaseEncodingDirection": "j",
477+
"IntendedFor": [
478+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
479+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
480+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
481+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
482+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
483+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
484+
],
485+
},
486+
},
487+
{
488+
"task": "rest",
489+
"echo": "2",
490+
"part": "phase",
491+
"suffix": "bold",
492+
"metadata": {
493+
"EchoTime": 0.03893,
494+
"RepetitionTime": 0.8,
495+
"TotalReadoutTime": 0.5,
496+
"PhaseEncodingDirection": "j",
497+
"IntendedFor": [
498+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
499+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
500+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
501+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
502+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
503+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
504+
],
505+
},
506+
},
507+
{
508+
"task": "rest",
509+
"echo": "3",
510+
"part": "mag",
511+
"suffix": "bold",
512+
"metadata": {
513+
"EchoTime": 0.06366,
514+
"RepetitionTime": 0.8,
515+
"TotalReadoutTime": 0.5,
516+
"PhaseEncodingDirection": "j",
517+
"IntendedFor": [
518+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
519+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
520+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
521+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
522+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
523+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
524+
],
525+
},
526+
},
527+
{
528+
"task": "rest",
529+
"echo": "3",
530+
"part": "phase",
531+
"suffix": "bold",
532+
"metadata": {
533+
"EchoTime": 0.06366,
534+
"RepetitionTime": 0.8,
535+
"TotalReadoutTime": 0.5,
536+
"PhaseEncodingDirection": "j",
537+
"IntendedFor": [
538+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
539+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
540+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
541+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
542+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
543+
"bids::sub-01/ses-01/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
544+
],
545+
},
546+
},
547+
],
548+
},
423549
]
424550
}
425551

0 commit comments

Comments
 (0)