Skip to content

Commit

Permalink
Simplify methods of proces_times
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillacorta committed Jun 19, 2024
1 parent e040a0f commit 079a84c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions KomaMRIPlots/src/ui/DisplayFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1032,19 +1032,7 @@ function plot_phantom_map(
frame_duration_ms=250,
kwargs...,
)
function process_times(motion::SimpleMotion)
t = times(motion)
# Interpolate time points (as many as indicated by intermediate_time_samples)
itp = interpolate(
(
1:(intermediate_time_samples + 1):(length(t) + intermediate_time_samples * (length(t) - 1)),
),
t,
Gridded(Linear()),
)
return itp.(1:(length(t) + intermediate_time_samples * (length(t) - 1)))
end
function process_times(motion::ArbitraryMotion)
function process_times(motion::MotionModel)
t = times(motion)
# Interpolate time points (as many as indicated by intermediate_time_samples)
itp = interpolate(
Expand Down

0 comments on commit 079a84c

Please sign in to comment.