From 130a7f1f7c5464248b7081f3ec71dbd7be01d1b7 Mon Sep 17 00:00:00 2001 From: Pablo Villacorta Aylagas Date: Mon, 19 Aug 2024 19:02:51 +0200 Subject: [PATCH] Continue testing --- KomaMRICore/test/runtests.jl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/KomaMRICore/test/runtests.jl b/KomaMRICore/test/runtests.jl index bfbc961df..b1c256ecd 100644 --- a/KomaMRICore/test/runtests.jl +++ b/KomaMRICore/test/runtests.jl @@ -357,12 +357,12 @@ end dz = rand(Ns, Nt) ph.motion = MotionList(Trajectory(TimeRange(t_start, t_end), dx, dy, dz)) t = collect(range(t_start, t_end, Nt)) - ph = ph |> gpu - t = t |> gpu + ph = ph |> gpu |> f32 + t = t |> gpu |> f32 xt, yt, zt = get_spin_coords(ph.motion, ph.x, ph.y, ph.z, t') - dx = dx |> gpu - dy = dy |> gpu - dz = dz |> gpu + dx = dx |> gpu |> f32 + dy = dy |> gpu |> f32 + dz = dz |> gpu |> f32 @test xt == ph.x .+ dx @test yt == ph.y .+ dy @test zt == ph.z .+ dz @@ -378,12 +378,12 @@ end dz = rand(Ns, Nt) ph.motion = MotionList(Trajectory(TimeRange(t_start, t_end), dx, dy, dz)) t = collect(range(t_start, t_end, Nt)) - ph = ph |> gpu - t = t |> gpu + ph = ph |> gpu |> f32 + t = t |> gpu |> f32 xt, yt, zt = get_spin_coords(ph.motion, ph.x, ph.y, ph.z, t') - dx = dx |> gpu - dy = dy |> gpu - dz = dz |> gpu + dx = dx |> gpu |> f32 + dy = dy |> gpu |> f32 + dz = dz |> gpu |> f32 @test xt == ph.x .+ dx @test yt == ph.y .+ dy @test zt == ph.z .+ dz