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

Fix constructor syntax

parent 40e414da
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ Usually, you do not want to create this object directly, use a `BuildingBlock` i
"""
struct NoGradient{N} <: GradientWaveform{N}
duration :: VariableType
function NoGradient{N}(duration)
function NoGradient{N}(duration) where {N}
if !(N in (1, 3))
error("Dimensionality of the gradient should be 1 or 3, not $N")
end
......
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