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

Allow small absolute deviations in duration

parent 4e99fd82
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
......@@ -104,7 +104,7 @@ end
function SequenceDiagram(actual_duration; kwargs...)
durations = duration_line.([values(kwargs)...])
@assert all(isapprox.(actual_duration, durations, rtol=1e-3))
@assert all(isapprox.(actual_duration, durations, rtol=1e-3, atol=1e-6))
res = SinglePlotLine[]
for symbol in (:RFx, :RFy, :G, :Gx, :Gy, :Gz, :ADC)
push!(res, get(kwargs, symbol, SinglePlotLine(actual_duration)))
......
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