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

Fix adding variable method in @eval

parent c885f86b
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
...@@ -260,7 +260,7 @@ for (fn, default_value) in ((:amplitude, 0.), (:phase, NaN), (:frequency, NaN)) ...@@ -260,7 +260,7 @@ for (fn, default_value) in ((:amplitude, 0.), (:phase, NaN), (:frequency, NaN))
if isnothing(pulse) if isnothing(pulse)
return $default_value return $default_value
end end
return $fn(pulse[1], pulse[2]) return variables.$fn.f(pulse[1], pulse[2])
end end
end 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