Skip to content

Commit

Permalink
Continue testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillacorta committed Aug 19, 2024
1 parent 4901df7 commit 130a7f1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions KomaMRICore/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 130a7f1

Please sign in to comment.