Skip to content

Commit

Permalink
Try 15 iterations with no display, store itp result in intermediate v…
Browse files Browse the repository at this point in the history
…ariable
  • Loading branch information
pvillacorta committed Sep 2, 2024
1 parent 00d7ea8 commit f8f0599
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions KomaMRIBase/src/motion/motionlist/actions/ArbitraryAction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ function displacement_y!(
) where {T<:Real}
itp = interpolate(action.dy, Gridded(Linear()), Val(size(action.dy,1)))
uy .= resample(itp, t)
m = minimum([size(uy,2), 8])
println("t: ", @view(t[1:1, 1:m]))
println("uy: ", @view(uy[1:1, 1:m]))
return nothing
end

Expand Down Expand Up @@ -120,7 +117,11 @@ function displacement_y(
t::AbstractArray{T},
) where {T<:Real}
itp = interpolate(action.dy, Gridded(Linear()), Val(size(action.dy,1)))
return resample(itp, t)
uy = resample(itp, t)
# m = minimum([size(uy,2), 8])
# println("t: ", @view(t[1:1, 1:m]))
# println("uy: ", @view(uy[1:1, 1:m]))
return uy
end

function displacement_z(
Expand Down

0 comments on commit f8f0599

Please sign in to comment.