Skip to content

Commit

Permalink
TEST: Missing echo-time correction test added
Browse files Browse the repository at this point in the history
  • Loading branch information
spinicist committed Jun 18, 2018
1 parent 4ff8495 commit c8f2e04
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions Test/qi_mcd.bats
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,76 @@ qidiff --baseline=f_m$EXT --input=2C_f_m$EXT --noise=$NOISE --tolerance=250 --ve

}

@test "2C mcDESPOT w/ Echo Time Correction" {

SIZE="3,3,3"
qinewimage --size "$SIZE" -f "1.0" PD$EXT
qinewimage --size "$SIZE" -f "0.465" T1_m$EXT
qinewimage --size "$SIZE" -f "0.026" T2_m$EXT
qinewimage --size "$SIZE" -f "1.070" T1_ie$EXT
qinewimage --size "$SIZE" -f "0.117" T2_ie$EXT
qinewimage --size "$SIZE" -f "0.18" tau_m$EXT
qinewimage --size "$SIZE" -g "0 0.05 0.25" f_m$EXT
qinewimage --size "$SIZE" -g "1 0. 200." f0$EXT
qinewimage --size "$SIZE" -g "2 0.75 1.25" B1$EXT


# Setup parameters
SPGR_FILE="spgr$EXT"
SPGR_FLIP="3,4,5,6,7,9,13,18"
SPGR_TR="0.008"
SPGR_TE="0.002"
SSFP_FILE="ssfp$EXT"
SSFP_FLIP="12,16,21,27,33,40,51,68,12,16,21,27,33,40,51,68"
SSFP_PINC="180,180,180,180,180,180,180,180,0,0,0,0,0,0,0,0"
SSFP_TR="0.008"

SEQUENCE_GROUP="\
\"SequenceGroup\": {
\"sequences\": [
{
\"SPGREcho\": {
\"TR\": $SPGR_TR,
\"TE\": $SPGR_TE,
\"FA\": [$SPGR_FLIP]
}
},
{
\"SSFPEcho\": {
\"TR\": $SSFP_TR,
\"FA\": [$SSFP_FLIP],
\"PhaseInc\": [$SSFP_PINC]
}
}
]
}
"

NOISE="0.002"
qisignal --model=2 -v --noise=$NOISE $SPGR_FILE $SSFP_FILE << END_SIG
{
"PD": "PD$EXT",
"T1_m": "T1_m$EXT",
"T2_m": "T2_m$EXT",
"T1_ie": "T1_ie$EXT",
"T2_ie": "T2_ie$EXT",
"tau_m": "tau_m$EXT",
"f_m": "f_m$EXT",
"f0": "f0$EXT",
"B1": "B1$EXT",
$SEQUENCE_GROUP
}
END_SIG

qimcdespot $OPTS -M2 -bB1$EXT -ff0$EXT -r -v $SPGR_FILE $SSFP_FILE << END_MCD
{
$SEQUENCE_GROUP
}
END_MCD
qidiff --baseline=f_m$EXT --input=2C_f_m$EXT --noise=$NOISE --tolerance=250 --verbose

}

@test "3C mcDESPOT" {

SIZE="4,4,4"
Expand Down

0 comments on commit c8f2e04

Please sign in to comment.