From 047ce799427b03d491e27c052da75b1ed873f742 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Fri, 12 Apr 2024 14:34:40 +0100 Subject: [PATCH] Teest duration_dephase and duration_transverse --- test/test_sequences.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_sequences.jl b/test/test_sequences.jl index afcf258..4d94395 100644 --- a/test/test_sequences.jl +++ b/test/test_sequences.jl @@ -6,6 +6,8 @@ @test all(isapprox.(duration.(seq), [0., 40., 0.], atol=1e-6)) @test length(collect(iter_instant_pulses(seq))) == 1 @test length(collect(iter_instant_gradients(seq))) == 0. + @test duration_dephase(seq) ≈ 40. + @test duration_transverse(seq) ≈ 40. end @testset "SpinEcho" begin seq = SpinEcho(TE=40) @@ -14,6 +16,8 @@ @test all(isapprox.(duration.(seq), [0., 20., 0., 20., 0.], atol=1e-6)) @test length(collect(iter_instant_pulses(seq))) == 2 @test length(collect(iter_instant_gradients(seq))) == 0. + @test duration_dephase(seq) ≈ 0. atol=1e-4 + @test duration_transverse(seq) ≈ 40. end @testset "DW-SE" begin -- GitLab