Skip to content

Commit

Permalink
Update KomaMRIPlots/src/ui/DisplayFunctions.jl
Browse files Browse the repository at this point in the history
Julia formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
cncastillo and github-actions[bot] authored Apr 9, 2024
1 parent c458c0a commit 7ef8d53
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions KomaMRIPlots/src/ui/DisplayFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,30 @@ function plot_seq(
usadc(x) = show_adc || isempty(x) ? x : [first(x); last(x)]
# Get the samples of the events in the sequence
seq_samples = (get_samples(seq, i; freq_in_phase) for i in 1:length(seq))
gx = (A=reduce(vcat, [block.gx.A; Inf] for block in seq_samples),
t=reduce(vcat, [block.gx.t; Inf] for block in seq_samples))
gy = (A=reduce(vcat, [block.gy.A; Inf] for block in seq_samples),
t=reduce(vcat, [block.gy.t; Inf] for block in seq_samples))
gz = (A=reduce(vcat, [block.gz.A; Inf] for block in seq_samples),
t=reduce(vcat, [block.gz.t; Inf] for block in seq_samples))
rf = (A=reduce(vcat, [usrf(block.rf.A); Inf] for block in seq_samples),
t=reduce(vcat, [usrf(block.rf.t); Inf] for block in seq_samples))
Δf = (A=reduce(vcat, [usrf(block.Δf.A); Inf] for block in seq_samples),
t=reduce(vcat, [usrf(block.Δf.t); Inf] for block in seq_samples))
adc = (A=reduce(vcat, [usadc(block.adc.A); Inf] for block in seq_samples),
t=reduce(vcat, [usadc(block.adc.t); Inf] for block in seq_samples))
gx = (
A=reduce(vcat, [block.gx.A; Inf] for block in seq_samples),
t=reduce(vcat, [block.gx.t; Inf] for block in seq_samples),
)
gy = (
A=reduce(vcat, [block.gy.A; Inf] for block in seq_samples),
t=reduce(vcat, [block.gy.t; Inf] for block in seq_samples),
)
gz = (
A=reduce(vcat, [block.gz.A; Inf] for block in seq_samples),
t=reduce(vcat, [block.gz.t; Inf] for block in seq_samples),
)
rf = (
A=reduce(vcat, [usrf(block.rf.A); Inf] for block in seq_samples),
t=reduce(vcat, [usrf(block.rf.t); Inf] for block in seq_samples),
)
Δf = (
A=reduce(vcat, [usrf(block.Δf.A); Inf] for block in seq_samples),
t=reduce(vcat, [usrf(block.Δf.t); Inf] for block in seq_samples),
)
adc = (
A=reduce(vcat, [usadc(block.adc.A); Inf] for block in seq_samples),
t=reduce(vcat, [usadc(block.adc.t); Inf] for block in seq_samples),
)

# Define general params and the vector of plots
idx = ["Gx" "Gy" "Gz"]
Expand Down

0 comments on commit 7ef8d53

Please sign in to comment.