Skip to content

Commit

Permalink
Replace B0Field with IntendedFor.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Oct 13, 2024
1 parent 084f199 commit 9f2c089
Showing 1 changed file with 48 additions and 12 deletions.
60 changes: 48 additions & 12 deletions sdcflows/utils/tests/test_wrangler.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,18 @@ def gen_layout(bids_dir, database_dir=None):
"part": "mag",
"suffix": "bold",
"metadata": {
"B0FieldIdentifier": ["medic_rest"],
"B0FieldSource": ["medic_rest"],
"EchoTime": 0.0142,
"RepetitionTime": 0.8,
"TotalReadoutTime": 0.5,
"PhaseEncodingDirection": "j",
"IntendedFor": [
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
{
Expand All @@ -318,12 +324,18 @@ def gen_layout(bids_dir, database_dir=None):
"part": "phase",
"suffix": "bold",
"metadata": {
"B0FieldIdentifier": ["medic_rest"],
"B0FieldSource": ["medic_rest"],
"EchoTime": 0.0142,
"RepetitionTime": 0.8,
"TotalReadoutTime": 0.5,
"PhaseEncodingDirection": "j",
"IntendedFor": [
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
{
Expand All @@ -332,12 +344,18 @@ def gen_layout(bids_dir, database_dir=None):
"part": "mag",
"suffix": "bold",
"metadata": {
"B0FieldIdentifier": ["medic_rest"],
"B0FieldSource": ["medic_rest"],
"EchoTime": 0.03893,
"RepetitionTime": 0.8,
"TotalReadoutTime": 0.5,
"PhaseEncodingDirection": "j",
"IntendedFor": [
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
{
Expand All @@ -346,12 +364,18 @@ def gen_layout(bids_dir, database_dir=None):
"part": "phase",
"suffix": "bold",
"metadata": {
"B0FieldIdentifier": ["medic_rest"],
"B0FieldSource": ["medic_rest"],
"EchoTime": 0.03893,
"RepetitionTime": 0.8,
"TotalReadoutTime": 0.5,
"PhaseEncodingDirection": "j",
"IntendedFor": [
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
{
Expand All @@ -360,12 +384,18 @@ def gen_layout(bids_dir, database_dir=None):
"part": "mag",
"suffix": "bold",
"metadata": {
"B0FieldIdentifier": ["medic_rest"],
"B0FieldSource": ["medic_rest"],
"EchoTime": 0.06366,
"RepetitionTime": 0.8,
"TotalReadoutTime": 0.5,
"PhaseEncodingDirection": "j",
"IntendedFor": [
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
{
Expand All @@ -374,12 +404,18 @@ def gen_layout(bids_dir, database_dir=None):
"part": "phase",
"suffix": "bold",
"metadata": {
"B0FieldIdentifier": ["medic_rest"],
"B0FieldSource": ["medic_rest"],
"EchoTime": 0.06366,
"RepetitionTime": 0.8,
"TotalReadoutTime": 0.5,
"PhaseEncodingDirection": "j",
"IntendedFor": [
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-1_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-2_part-phase_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-mag_bold.nii.gz",
"bids::sub-01/ses-01/func/sub-01_ses-01_task-rest_echo-3_part-phase_bold.nii.gz",
],
},
},
],
Expand Down

0 comments on commit 9f2c089

Please sign in to comment.