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

Fix adding variable method in @eval

parent afae0cd7
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
......@@ -119,8 +119,8 @@ function edge_times(seq::BaseSequence; tol=1e-6)
return sort(unique_res)
end
for fn in (:gradient_strength, :amplitude, :phase, :frequency, :gradient_strength3)
@eval function $fn(sequence::BaseSequence, time::AbstractFloat)
for fn in (:gradient_strength, :amplitude, :phase, :frequency)
@eval function variables.$fn.f(sequence::BaseSequence, time::AbstractFloat)
(block_time, block) = sequence(time)
return variables.$fn.f(block, block_time)
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