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

Fix constructor argument order

parent 82a2c2e3
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ Underlying type for any flat part in a 3D (first constructor) or 3D (second cons ...@@ -13,7 +13,7 @@ Underlying type for any flat part in a 3D (first constructor) or 3D (second cons
Usually, you do not want to create this object directly, use a `BuildingBlock` instead. Usually, you do not want to create this object directly, use a `BuildingBlock` instead.
""" """
abstract type ConstantGradient{N} <: GradientWaveform{N} end abstract type ConstantGradient{N} <: GradientWaveform{N} end
(::Type{ConstantGradient})(grad1::VariableType, orientation::AbstractVector, duration::VariableType, group=nothing) = ConstantGradient1D(grad1, duration, orientation, group) (::Type{ConstantGradient})(grad1::VariableType, orientation::AbstractVector, duration::VariableType, group=nothing) = ConstantGradient1D(grad1, orientation, duration, group)
(::Type{ConstantGradient})(grad1::AbstractVector, ::Nothing, duration::VariableType, group=nothing) = ConstantGradient3D(grad1, duration, group) (::Type{ConstantGradient})(grad1::AbstractVector, ::Nothing, duration::VariableType, group=nothing) = ConstantGradient3D(grad1, duration, group)
(::Type{ConstantGradient})(grad1::AbstractVector, duration::VariableType, group=nothing) = ConstantGradient3D(grad1, duration, group) (::Type{ConstantGradient})(grad1::AbstractVector, duration::VariableType, group=nothing) = ConstantGradient3D(grad1, duration, group)
......
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