1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
|
tests/test-sim-to-signal-irflash: sim cabs mip spow fmac scale signal nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-FLASH,TR=0.0041,TE=0.0025,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 _simu.ra ;\
$(TOOLDIR)/cabs _simu.ra _simu_abs.ra ;\
$(TOOLDIR)/mip 32 _simu_abs.ra max.ra ;\
$(TOOLDIR)/spow -- -1 max.ra scale.ra ;\
$(TOOLDIR)/fmac _simu.ra scale.ra _simu2.ra ;\
$(TOOLDIR)/scale -- -1i _simu2.ra simu.ra ;\
$(TOOLDIR)/signal -I -F -r0.0041 -e0.00258 -f8 -n1000 -1 3:3:1 -2 1:1:1 signal.ra ;\
$(TOOLDIR)/nrmse -t 0.003 simu.ra signal.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-to-signal-flash: sim cabs mip spow fmac scale signal nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq FLASH,TR=0.0041,TE=0.0025,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 _simu.ra ;\
$(TOOLDIR)/cabs _simu.ra _simu_abs.ra ;\
$(TOOLDIR)/mip 32 _simu_abs.ra max.ra ;\
$(TOOLDIR)/spow -- -1 max.ra scale.ra ;\
$(TOOLDIR)/fmac _simu.ra scale.ra _simu2.ra ;\
$(TOOLDIR)/scale -- -1i _simu2.ra simu.ra ;\
$(TOOLDIR)/signal -F -r0.0041 -e0.00258 -f8 -n1000 -1 3:3:1 -2 1:1:1 signal.ra ;\
$(TOOLDIR)/nrmse -t 0.003 simu.ra signal.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-to-signal-irbSSFP: sim scale signal nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 _sim.ra ;\
$(TOOLDIR)/scale -- -1i _sim.ra sim.ra ;\
$(TOOLDIR)/signal -I -B -r0.0045 -e0.00225 -f45 -n1000 -1 3:3:1 -2 1:1:1 signal.ra ;\
$(TOOLDIR)/nrmse -t 0.003 sim.ra signal.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-spoke-averaging-3: sim slice join avg nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 ref.ra ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=45,BWTP=4,av-spokes=3 -1 3:3:1 -2 1:1:1 signal.ra ;\
$(TOOLDIR)/slice 5 0 ref.ra ref1.ra ;\
$(TOOLDIR)/slice 5 1 ref.ra ref2.ra ;\
$(TOOLDIR)/slice 5 2 ref.ra ref3.ra ;\
$(TOOLDIR)/join 5 ref1.ra ref2.ra ref3.ra comb.ra ;\
$(TOOLDIR)/avg 32 comb.ra avg.ra ;\
$(TOOLDIR)/slice 5 0 signal.ra s.ra;\
$(TOOLDIR)/nrmse -t 0.00001 avg.ra s.ra ;\
$(TOOLDIR)/slice 5 501 ref.ra ref1.ra ;\
$(TOOLDIR)/slice 5 502 ref.ra ref2.ra ;\
$(TOOLDIR)/slice 5 503 ref.ra ref3.ra ;\
$(TOOLDIR)/join 5 ref1.ra ref2.ra ref3.ra comb.ra ;\
$(TOOLDIR)/avg 32 comb.ra avg.ra ;\
$(TOOLDIR)/slice 5 167 signal.ra s.ra;\
$(TOOLDIR)/nrmse -t 0.00001 avg.ra s.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-to-signal-irbSSFP-averaged-spokes: sim scale signal nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=45,BWTP=4,av-spokes=3 -1 3:3:1 -2 1:1:1 _sim.ra ;\
$(TOOLDIR)/scale -- -1i _sim.ra sim.ra ;\
$(TOOLDIR)/signal -I -B -r0.0045 -e0.00225 -f45 -n1000 -1 3:3:1 -2 1:1:1 --av-spokes 3 signal.ra ;\
$(TOOLDIR)/nrmse -t 0.001 sim.ra signal.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-slice-profile-spins: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,slice-thickness=0.020,sl-grad=0.01,Nspins=41 -1 3:3:1 -2 1:1:1 sim.ra ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,slice-thickness=0.020,sl-grad=0.01,Nspins=61 -1 3:3:1 -2 1:1:1 sim2.ra ;\
$(TOOLDIR)/nrmse -t 0.01 sim.ra sim2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-slice-profile-slicethickness: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,slice-thickness=0.040,sl-grad=0.01,Nspins=41 -1 3:3:1 -2 1:1:1 sim.ra ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,slice-thickness=0.020,sl-grad=0.01,Nspins=41 -1 3:3:1 -2 1:1:1 sim2.ra ;\
$(TOOLDIR)/nrmse -t 0.02 sim.ra sim2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-slice-profile-density: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,slice-thickness=0.040,sl-grad=0.01,Nspins=41 -1 3:3:1 -2 1:1:1 sim.ra ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,slice-thickness=0.020,sl-grad=0.01,Nspins=31 -1 3:3:1 -2 1:1:1 sim2.ra ;\
$(TOOLDIR)/nrmse -t 0.02 sim.ra sim2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-slice-profile-density2: sim scale nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,slice-thickness=0.041,sl-grad=0,Nspins=41 -1 3:3:1 -2 1:1:1 sim.ra ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4,sl-grad=0 -1 3:3:1 -2 1:1:1 sim2.ra ;\
$(TOOLDIR)/scale -- 41 sim2.ra sim3.ra ;\
$(TOOLDIR)/nrmse -t 0.02 sim.ra sim3.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-hp-irflash: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-FLASH,TR=0.0041,TE=0.0025,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0.0001,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --seq IR-FLASH,TR=0.0041,TE=0.0025,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 simu_hp.ra ;\
$(TOOLDIR)/nrmse -t 0.0006 simu_hp.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-hp-flash: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq FLASH,TR=0.0041,TE=0.0025,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0.0001,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --seq FLASH,TR=0.0041,TE=0.0025,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 simu_hp.ra ;\
$(TOOLDIR)/nrmse -t 0.0006 simu_hp.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-hp-irbssfp: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0.0001,ppl=0,Trf=0,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_hp.ra ;\
$(TOOLDIR)/nrmse -t 0.00015 simu_hp.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-hp-bssfp: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0.0001,ppl=0,Trf=0,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --seq BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0,ppl=0,Trf=0,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_hp.ra ;\
$(TOOLDIR)/nrmse -t 0.00015 simu_hp.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-multi-relaxation: sim slice nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,ipl=0.0001,ppl=0,Trf=0,FA=45,BWTP=4 -1 3:3:4 -2 1:1:5 simu.ra ;\
$(TOOLDIR)/slice 6 0 7 0 simu.ra slice1.ra ;\
$(TOOLDIR)/slice 6 3 7 4 simu.ra slice2.ra ;\
$(TOOLDIR)/nrmse -t 0.000001 slice1.ra slice2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-stm-bssfp: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0.01,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --STM --seq BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0.01,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_stm.ra ;\
$(TOOLDIR)/nrmse -t 0.003 simu_stm.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-stm-irbssfp: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0.01,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --STM --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=1000,pinv,ipl=0.01,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_stm.ra ;\
$(TOOLDIR)/nrmse -t 0.003 simu_stm.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-stm-flash: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --STM --seq FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_stm.ra ;\
$(TOOLDIR)/nrmse -t 0.001 simu_stm.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-stm-irflash: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --STM --seq IR-FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_stm.ra ;\
$(TOOLDIR)/nrmse -t 0.001 simu_stm.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-rot-bssfp: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq BSSFP,TR=0.0045,TE=0.00225,Nrep=50,pinv,ipl=0.01,ppl=0.00225,Trf=0.0001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --ROT --seq BSSFP,TR=0.0045,TE=0.00225,Nrep=50,pinv,ipl=0.01,ppl=0.00225,Trf=0.0001,FA=45,BWTP=4 --other sampling-rate=10E5 -1 3:3:1 -2 1:1:1 simu_rot.ra ;\
$(TOOLDIR)/nrmse -t 0.003 simu_rot.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-rot-irbssfp: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=50,pinv,ipl=0.01,ppl=0.00225,Trf=0.0001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --ROT --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=50,pinv,ipl=0.01,ppl=0.00225,Trf=0.0001,FA=45,BWTP=4 --other sampling-rate=10E5 -1 3:3:1 -2 1:1:1 simu_rot.ra ;\
$(TOOLDIR)/nrmse -t 0.003 simu_rot.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-rot-flash: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --ROT --seq FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=8,BWTP=4 --other sampling-rate=10E5 -1 3:3:1 -2 1:1:1 simu_rot.ra ;\
$(TOOLDIR)/nrmse -t 0.006 simu_rot.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-rot-irflash: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=8,BWTP=4 -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --ROT --seq IR-FLASH,TR=0.003,TE=0.0017,Nrep=1000,pinv,ipl=0.01,ppl=0,Trf=0.001,FA=8,BWTP=4 --other sampling-rate=10E5 -1 3:3:1 -2 1:1:1 simu_rot.ra ;\
$(TOOLDIR)/nrmse -t 0.01 simu_rot.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-split-dim-mag: sim slice saxpy nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=10,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 mxy.ra ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=10,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 --split-dim -1 3:3:1 -2 1:1:1 sim.ra ;\
$(TOOLDIR)/slice 0 0 sim.ra x.ra ;\
$(TOOLDIR)/slice 0 1 sim.ra y.ra ;\
$(TOOLDIR)/saxpy -- 1i y.ra x.ra mxy2.ra ;\
$(TOOLDIR)/nrmse -t 0.002 mxy.ra mxy2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-split-dim-deriv: sim slice saxpy nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=10,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 mxy.ra dxy.ra;\
$(TOOLDIR)/sim --seq IR-BSSFP,TR=0.0045,TE=0.00225,Nrep=10,pinv,ipl=0,ppl=0.00225,Trf=0.001,FA=45,BWTP=4 --split-dim -1 3:3:1 -2 1:1:1 sim.ra deriv.ra;\
$(TOOLDIR)/slice 0 0 deriv.ra x.ra ;\
$(TOOLDIR)/slice 0 1 deriv.ra y.ra ;\
$(TOOLDIR)/saxpy -- 1i y.ra x.ra d.ra ;\
$(TOOLDIR)/nrmse -t 0.002 dxy.ra d.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-stm-flash-te-eq-trf-eq-tr: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq FLASH,TR=0.001,TE=0.001,Nrep=100,pinv,ipl=0,ppl=0,Trf=0.001,FA=180,BWTP=1,isp=0,slice-thickness=0.040,sl-grad=0.001 --split-dim -1 3:3:1 -2 1:1:1 simu_ode.ra ;\
$(TOOLDIR)/sim --STM --seq FLASH,TR=0.001,TE=0.001,Nrep=100,pinv,ipl=0,ppl=0,Trf=0.001,FA=180,BWTP=1,isp=0,slice-thickness=0.040,sl-grad=0.001 --split-dim -1 3:3:1 -2 1:1:1 simu_stm.ra ;\
$(TOOLDIR)/nrmse -t 0.001 simu_stm.ra simu_ode.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-deriv-r1: sim slice saxpy scale nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 --other ode-tol=1E-6 s.ra d.ra;\
$(TOOLDIR)/slice 4 0 d.ra d_r1.ra ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45,BWTP=4 -1 3.003:3.003:1 -2 1:1:1 --other ode-tol=1E-6 s2.ra ;\
$(TOOLDIR)/saxpy -- -1 s.ra s2.ra diff.ra ;\
$(TOOLDIR)/scale -- 333 diff.ra g.ra ;\
$(TOOLDIR)/scale -- -9 g.ra g2.ra ;\
$(TOOLDIR)/nrmse -t 0.012 d_r1.ra g2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-deriv-r2: sim slice saxpy scale nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 --other ode-tol=1E-6 s.ra d.ra;\
$(TOOLDIR)/slice 4 2 d.ra d_r2.ra ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1.01:1.01:1 --other ode-tol=1E-6 s2.ra ;\
$(TOOLDIR)/saxpy -- -1 s.ra s2.ra diff.ra ;\
$(TOOLDIR)/scale -- 100 diff.ra g.ra ;\
$(TOOLDIR)/scale -- -1 g.ra g2.ra ;\
$(TOOLDIR)/nrmse -t 0.01 d_r2.ra g2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-deriv-b1: sim slice saxpy scale nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 --other ode-tol=1E-6 s.ra d.ra;\
$(TOOLDIR)/slice 4 3 d.ra d_b1.ra ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45.1,BWTP=4 -1 3:3:1 -2 1:1:1 --other ode-tol=1E-6 s2.ra ;\
$(TOOLDIR)/saxpy -- -1 s.ra s2.ra diff.ra ;\
$(TOOLDIR)/scale -- 10 diff.ra g.ra ;\
$(TOOLDIR)/scale -- 45 g.ra g2.ra ;\
$(TOOLDIR)/nrmse -t 0.01 d_b1.ra g2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-sim-ode-stm-deriv: sim nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/sim --ODE --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1:1:1 --other ode-tol=1E-6 s.ra d.ra;\
$(TOOLDIR)/sim --STM --seq IR-BSSFP,TR=0.004,TE=0.002,Nrep=1000,pinv,ipl=0.01,ppl=0.002,Trf=0.001,FA=45,BWTP=4 -1 3:3:1 -2 1.01:1.01:1 --other ode-tol=1E-6 s2.ra d2.ra ;\
$(TOOLDIR)/nrmse -t 0.005 d.ra d2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
TESTS += tests/test-sim-to-signal-irflash tests/test-sim-to-signal-flash
TESTS += tests/test-sim-to-signal-irbSSFP
TESTS += tests/test-sim-spoke-averaging-3 tests/test-sim-to-signal-irbSSFP-averaged-spokes
TESTS += tests/test-sim-slice-profile-spins tests/test-sim-slice-profile-slicethickness tests/test-sim-slice-profile-density tests/test-sim-slice-profile-density2
TESTS += tests/test-sim-ode-hp-irflash tests/test-sim-ode-hp-flash
TESTS += tests/test-sim-ode-hp-irbssfp tests/test-sim-ode-hp-bssfp
TESTS += tests/test-sim-multi-relaxation
TESTS += tests/test-sim-ode-stm-bssfp tests/test-sim-ode-stm-irbssfp
TESTS += tests/test-sim-ode-stm-flash tests/test-sim-ode-stm-irflash
TESTS += tests/test-sim-ode-rot-bssfp tests/test-sim-ode-rot-irbssfp
TESTS += tests/test-sim-ode-rot-flash tests/test-sim-ode-rot-irflash
TESTS += tests/test-sim-split-dim-mag tests/test-sim-split-dim-deriv
TESTS += tests/test-sim-ode-stm-flash-te-eq-trf-eq-tr
TESTS += tests/test-sim-ode-deriv-r1 tests/test-sim-ode-deriv-r2 tests/test-sim-ode-deriv-b1 tests/test-sim-ode-stm-deriv
|