Skip to content

Commit

Permalink
Add necessary outflow_spin_reset! method
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillacorta committed Dec 14, 2024
1 parent 9fad1af commit faa285b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions KomaMRICore/src/simulation/Flow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ function outflow_spin_reset!(args...; kwargs...)
return nothing
end

function outflow_spin_reset!(
spin_state_matrix, t, motion::MotionList;
replace_by=0, seq_t=0, add_t0=false
)
for m in motion.motions
outflow_spin_reset!(
spin_state_matrix, t, m.action, m.time, m.spins;
replace_by=replace_by, seq_t=seq_t, add_t0=add_t0
)
function outflow_spin_reset!(spin_state_matrix, t, ml::MotionList; replace_by=0, seq_t=0, add_t0=false)
for m in ml.motions
outflow_spin_reset!(spin_state_matrix, t, m; replace_by=replace_by, seq_t=seq_t, add_t0=add_t0)
end
return nothing
end

function outflow_spin_reset!(spin_state_matrix, t, m::Motion; replace_by=0, seq_t=0, add_t0=false)
outflow_spin_reset!(spin_state_matrix, t, m.action, m.time, m.spins; replace_by=replace_by, seq_t=seq_t, add_t0=add_t0)
return nothing
end

function outflow_spin_reset!(
spin_state_matrix::AbstractArray,
t,
Expand Down

0 comments on commit faa285b

Please sign in to comment.