Skip to content
Snippets Groups Projects

Define variables through new @defvar macro

Merged Michiel Cottaar requested to merge new_variables into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -260,7 +260,7 @@ for (fn, default_value) in ((:amplitude, 0.), (:phase, NaN), (:frequency, NaN))
if isnothing(pulse)
return $default_value
end
return $fn(pulse[1], pulse[2])
return variables.$fn.f(pulse[1], pulse[2])
end
end
Loading