From 3e7453b48b66cd2cdd70b50a020a12be05ef5f00 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Thu, 21 Mar 2024 10:06:58 +0000 Subject: [PATCH] Allow vector of sequences --- src/containers/abstract.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/containers/abstract.jl b/src/containers/abstract.jl index d58fa1a..671587d 100644 --- a/src/containers/abstract.jl +++ b/src/containers/abstract.jl @@ -54,7 +54,7 @@ Return the times of all of the readout events in ms. function readout_times end """ - edge_times(container) + edge_times(container(s)) Returns all the edge times during a sequence in ms. @@ -62,8 +62,10 @@ Edges are defined as any time, when: - the edge of a building block - the slope of the gradient profile changes suddenly - an RF pulse starts or ends + +Multiple sequences can be passed on. In that case the edges in all sequences are returned (in a sorted vector). """ -function edge_times end +edge_times(containers::AbstractVector{<:ContainerBlock}) = sort(unique(vcat(edge_times.(containers)))) """ gradient_strength(sequence, time) -- GitLab