Skip to content

Commit

Permalink
Try dummy sum inside unit_time instead of resample
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillacorta committed Sep 2, 2024
1 parent 527c951 commit 8835924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion KomaMRIBase/src/motion/motionlist/TimeSpan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ function unit_time(t::AbstractArray{T}, ts::TimeRange{T}) where {T<:Real}
return (t .>= ts.t_start) .* oneunit(T)
else
tmp = max.((t .- ts.t_start) ./ (ts.t_end - ts.t_start), zero(T))
return min.(tmp, oneunit(T))
t = min.(tmp, oneunit(T))
_ = sum(t) # Dummy (oneAPI bug)
return t
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ function resample(itp::Interpolator2D{T}, t::AbstractArray{T}) where {T<:Real}
Ns = size(itp.coefs, 1)
id = similar(itp.coefs, Ns)
copyto!(id, collect(range(oneunit(T), T(Ns), Ns)))
_ = sum(t) # Dummy (oneAPI bug)
return itp.(id, t)
end

Expand Down

0 comments on commit 8835924

Please sign in to comment.