From 5e5ceaa44e519df5960e404714ea36fdb11af071 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Mon, 29 Jan 2024 14:35:25 +0000 Subject: [PATCH] Fix import and supertype --- src/gradients/fixed_gradients.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gradients/fixed_gradients.jl b/src/gradients/fixed_gradients.jl index b5e79ef..4fc3e3d 100644 --- a/src/gradients/fixed_gradients.jl +++ b/src/gradients/fixed_gradients.jl @@ -3,7 +3,7 @@ module FixedGradients import Printf: @sprintf import LinearAlgebra: norm import StaticArrays: SVector -import ...BuildingBlocks: ContainerBlock, fixed, BuildingBlock, BuildingBlockPrinter, get_children_blocks +import ...BuildingBlocks: ContainerBlock, fixed, BuildingBlock, BuildingBlockPrinter, get_children_blocks, GradientBlock import ...Variables: variables, duration, qvec, gradient_strength, slew_rate, start_time import ..ChangingGradientBlocks: FixedChangingGradientBlock @@ -22,7 +22,7 @@ All arguments should be arrays of the same length N defining these control point - `Gz`: gradient in the z-direction at every timepoint (assumed zero if not provided). - `gradients`: length-3 array at every timepoint defining the x-, y-, and z- direction of the gradient. """ -struct FixedGradient <: GradientBlock +struct FixedGradient <: ContainerBlock time :: Vector{Float64} gradient_strength :: Vector{SVector{3, Float64}} rotate :: Union{Symbol, Nothing} -- GitLab