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

Fix typo in getting amplitude/phase

parent bd9e1e12
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ end
for fn in (:amplitude, :phase)
@eval function $fn(fp::GenericPulse, time::Number)
i2 = find(t > time, fp.time)
i2 = findfirst(t->t > time, fp.time)
if isnothing(i2)
@assert time fp.time[end]
return fp.$(fn)[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