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

remove undocumented single args constructors

parent d8500302
No related branches found
No related tags found
No related merge requests found
...@@ -43,8 +43,6 @@ end ...@@ -43,8 +43,6 @@ end
FixedGradient(time::AbstractVector{<:Number}, Gx::AbstractVector{<:Number}) = FixedGradient(time, Gx, zeros(length(time)), zeros(length(time))) FixedGradient(time::AbstractVector{<:Number}, Gx::AbstractVector{<:Number}) = FixedGradient(time, Gx, zeros(length(time)), zeros(length(time)))
FixedGradient(single_arg::Tuple) = FixedGradient(single_arg...)
variables(::Type{<:FixedGradient}) = [] variables(::Type{<:FixedGradient}) = []
duration(fg::FixedGradient) = maximum(fg.time) duration(fg::FixedGradient) = maximum(fg.time)
......
...@@ -30,8 +30,6 @@ function FixedPulse(time::AbstractVector{<:Number}, amplitude::AbstractVector{<: ...@@ -30,8 +30,6 @@ function FixedPulse(time::AbstractVector{<:Number}, amplitude::AbstractVector{<:
return FixedPulse(time, amplitude, (time .- time[1]) .* (frequency * 360) .+ phase) return FixedPulse(time, amplitude, (time .- time[1]) .* (frequency * 360) .+ phase)
end end
FixedPulse(single_arg::Tuple) = FixedPulse(single_arg...)
variables(::Type{<:FixedPulse}) = [] variables(::Type{<:FixedPulse}) = []
duration(fg::FixedPulse) = maximum(fg.time) duration(fg::FixedPulse) = maximum(fg.time)
......
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