Skip to content

Commit

Permalink
Update KomaMRIBase/src/datatypes/Sequence.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
beorostica and github-actions[bot] authored Apr 11, 2024
1 parent 93f7d86 commit e811d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KomaMRIBase/src/datatypes/Sequence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ recursive_merge(x...) = x[end]
+(s::Sequence, g::Grad) = s + Sequence(reshape([g],1,1)) #Changed [a;;] for reshape(a,1,1) for Julia 1.6
+(g::Grad, s::Sequence) = Sequence(reshape([g],1,1)) + s #Changed [a;;] for reshape(a,1,1) for Julia 1.6
#RF operations
+(s::Sequence, r::RF) = s + Sequence(reshape([Grad(0.0,0.0)],1,1),reshape([r],1,1)) #Changed [a;;] for reshape(a,1,1) for Julia 1.6
+(r::RF, s::Sequence) = Sequence(reshape([Grad(0.0,0.0)],1,1),reshape([r],1,1)) + s #Changed [a;;] for reshape(a,1,1) for Julia 1.6
+(s::Sequence, r::RF) = s + Sequence(reshape([Grad(0.0, 0.0)], 1, 1), reshape([r], 1, 1)) #Changed [a;;] for reshape(a,1,1) for Julia 1.6
+(r::RF, s::Sequence) = Sequence(reshape([Grad(0.0, 0.0)], 1, 1), reshape([r], 1, 1)) + s #Changed [a;;] for reshape(a,1,1) for Julia 1.6
#ADC operations
function +(s::Sequence, a::ADC)
return s + Sequence(reshape([Grad(0.0, 0.0)], 1, 1), reshape([RF(0.0, 0.0)], 1, 1), [a])
Expand Down

0 comments on commit e811d18

Please sign in to comment.