Skip to content
Snippets Groups Projects
Verified Commit 5e5ceaa4 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix import and supertype

parent a9377048
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ module FixedGradients ...@@ -3,7 +3,7 @@ module FixedGradients
import Printf: @sprintf import Printf: @sprintf
import LinearAlgebra: norm import LinearAlgebra: norm
import StaticArrays: SVector 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 ...Variables: variables, duration, qvec, gradient_strength, slew_rate, start_time
import ..ChangingGradientBlocks: FixedChangingGradientBlock import ..ChangingGradientBlocks: FixedChangingGradientBlock
...@@ -22,7 +22,7 @@ All arguments should be arrays of the same length N defining these control point ...@@ -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). - `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. - `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} time :: Vector{Float64}
gradient_strength :: Vector{SVector{3, Float64}} gradient_strength :: Vector{SVector{3, Float64}}
rotate :: Union{Symbol, Nothing} rotate :: Union{Symbol, Nothing}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment