Skip to content
Snippets Groups Projects
Unverified Commit b4b1002a authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Add variables. in tests

parent 62da8f76
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
@testset "Minimise TE" begin @testset "Minimise TE" begin
seq = DiffusionSpinEcho(TE=:min, bval=1.) seq = DiffusionSpinEcho(TE=:min, bval=1.)
@test length(seq) == 9 @test length(seq) == 9
grad_duration = TE(seq) / 2 grad_duration = variables.TE(seq) / 2
@test all(isapprox.(duration.(seq), [0., 0., grad_duration, 0., 0., 0., grad_duration, 0., 0.], atol=1e-6)) @test all(isapprox.(duration.(seq), [0., 0., grad_duration, 0., 0., 0., grad_duration, 0., 0.], atol=1e-6))
@test length([iter_instant_pulses(seq)...]) == 2 @test length([iter_instant_pulses(seq)...]) == 2
@test length([iter_instant_gradients(seq)...]) == 0. @test length([iter_instant_gradients(seq)...]) == 0.
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
@test duration(seq[:gradient]) duration(seq[:gradient2]) @test duration(seq[:gradient]) duration(seq[:gradient2])
@test variables.bval(seq) 2. @test variables.bval(seq) 2.
@test length(readout_times(seq)) == 1 @test length(readout_times(seq)) == 1
@test variables.readout_times(seq)[1] > TE(seq) @test variables.readout_times(seq)[1] > variables.TE(seq)
end end
@testset "voxel-wise DW-SE" begin @testset "voxel-wise DW-SE" begin
seq = DiffusionSpinEcho(duration=:min, bval=2., voxel_size=2., fov=(20, 20, 20)) seq = DiffusionSpinEcho(duration=:min, bval=2., voxel_size=2., fov=(20, 20, 20))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment