Skip to content

Commit 670ebc8

Browse files
committed
It needs a third session!
1 parent c2205e1 commit 670ebc8

File tree

1 file changed

+162
-36
lines changed

1 file changed

+162
-36
lines changed

sdcflows/utils/tests/test_wrangler.py

Lines changed: 162 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@ def gen_layout(bids_dir, database_dir=None):
435435
"TotalReadoutTime": 0.5,
436436
"PhaseEncodingDirection": "j",
437437
"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",
438+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
439+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
440+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
441+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
442+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
443+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
444444
],
445445
},
446446
},
@@ -455,12 +455,12 @@ def gen_layout(bids_dir, database_dir=None):
455455
"TotalReadoutTime": 0.5,
456456
"PhaseEncodingDirection": "j",
457457
"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",
458+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
459+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
460+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
461+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
462+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
463+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
464464
],
465465
},
466466
},
@@ -475,12 +475,12 @@ def gen_layout(bids_dir, database_dir=None):
475475
"TotalReadoutTime": 0.5,
476476
"PhaseEncodingDirection": "j",
477477
"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",
478+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
479+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
480+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
481+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
482+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
483+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
484484
],
485485
},
486486
},
@@ -495,12 +495,12 @@ def gen_layout(bids_dir, database_dir=None):
495495
"TotalReadoutTime": 0.5,
496496
"PhaseEncodingDirection": "j",
497497
"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",
498+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
499+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
500+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
501+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
502+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
503+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
504504
],
505505
},
506506
},
@@ -515,12 +515,12 @@ def gen_layout(bids_dir, database_dir=None):
515515
"TotalReadoutTime": 0.5,
516516
"PhaseEncodingDirection": "j",
517517
"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",
518+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
519+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
520+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
521+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
522+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
523+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
524524
],
525525
},
526526
},
@@ -535,12 +535,138 @@ def gen_layout(bids_dir, database_dir=None):
535535
"TotalReadoutTime": 0.5,
536536
"PhaseEncodingDirection": "j",
537537
"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",
538+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-mag_bold.nii.gz",
539+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-1_part-phase_bold.nii.gz",
540+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-mag_bold.nii.gz",
541+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-2_part-phase_bold.nii.gz",
542+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-mag_bold.nii.gz",
543+
"bids::sub-01/ses-02/func/sub-01_ses-02_task-rest_echo-3_part-phase_bold.nii.gz",
544+
],
545+
},
546+
},
547+
],
548+
},
549+
{
550+
"session": "03",
551+
"anat": [{"suffix": "T1w", "metadata": {"EchoTime": 1}}],
552+
"func": [
553+
{
554+
"task": "rest",
555+
"echo": "1",
556+
"part": "mag",
557+
"suffix": "bold",
558+
"metadata": {
559+
"EchoTime": 0.0142,
560+
"RepetitionTime": 0.8,
561+
"TotalReadoutTime": 0.5,
562+
"PhaseEncodingDirection": "j",
563+
"IntendedFor": [
564+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
565+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
566+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
567+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
568+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
569+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-phase_bold.nii.gz",
570+
],
571+
},
572+
},
573+
{
574+
"task": "rest",
575+
"echo": "1",
576+
"part": "phase",
577+
"suffix": "bold",
578+
"metadata": {
579+
"EchoTime": 0.0142,
580+
"RepetitionTime": 0.8,
581+
"TotalReadoutTime": 0.5,
582+
"PhaseEncodingDirection": "j",
583+
"IntendedFor": [
584+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
585+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
586+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
587+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
588+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
589+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-phase_bold.nii.gz",
590+
],
591+
},
592+
},
593+
{
594+
"task": "rest",
595+
"echo": "2",
596+
"part": "mag",
597+
"suffix": "bold",
598+
"metadata": {
599+
"EchoTime": 0.03893,
600+
"RepetitionTime": 0.8,
601+
"TotalReadoutTime": 0.5,
602+
"PhaseEncodingDirection": "j",
603+
"IntendedFor": [
604+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
605+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
606+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
607+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
608+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
609+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-phase_bold.nii.gz",
610+
],
611+
},
612+
},
613+
{
614+
"task": "rest",
615+
"echo": "2",
616+
"part": "phase",
617+
"suffix": "bold",
618+
"metadata": {
619+
"EchoTime": 0.03893,
620+
"RepetitionTime": 0.8,
621+
"TotalReadoutTime": 0.5,
622+
"PhaseEncodingDirection": "j",
623+
"IntendedFor": [
624+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
625+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
626+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
627+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
628+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
629+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-phase_bold.nii.gz",
630+
],
631+
},
632+
},
633+
{
634+
"task": "rest",
635+
"echo": "3",
636+
"part": "mag",
637+
"suffix": "bold",
638+
"metadata": {
639+
"EchoTime": 0.06366,
640+
"RepetitionTime": 0.8,
641+
"TotalReadoutTime": 0.5,
642+
"PhaseEncodingDirection": "j",
643+
"IntendedFor": [
644+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
645+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
646+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
647+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
648+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
649+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-phase_bold.nii.gz",
650+
],
651+
},
652+
},
653+
{
654+
"task": "rest",
655+
"echo": "3",
656+
"part": "phase",
657+
"suffix": "bold",
658+
"metadata": {
659+
"EchoTime": 0.06366,
660+
"RepetitionTime": 0.8,
661+
"TotalReadoutTime": 0.5,
662+
"PhaseEncodingDirection": "j",
663+
"IntendedFor": [
664+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-mag_bold.nii.gz",
665+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-1_part-phase_bold.nii.gz",
666+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-mag_bold.nii.gz",
667+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-2_part-phase_bold.nii.gz",
668+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-mag_bold.nii.gz",
669+
"bids::sub-01/ses-03/func/sub-01_ses-03_task-rest_echo-3_part-phase_bold.nii.gz",
544670
],
545671
},
546672
},

0 commit comments

Comments
 (0)