Skip to content

Commit

Permalink
Load everything used in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Oct 19, 2023
1 parent 705da77 commit 1c9dff2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/signal_measurement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Not even something as sophistricated as FFT, just time domain edge detection stu
Its an important use case so we test it directly.
"""
module SignalMeasurement

using Test
using Diffractor
using Diffractor: ∂☆, ZeroBundle, TaylorBundle
using Diffractor: bundle, first_partial, TaylorTangentIndex
using Diffractor: bundle, first_partial, TaylorTangentIndex, primal


function make_soft_square_pulse(width, hardness=100)
Expand Down Expand Up @@ -51,7 +51,7 @@ end
function signal_problem(width)
func = make_soft_square_pulse(width, 8)
ts = 0.0:0.001:1.0
signal = func.(ts)
signal = map(func, ts)
return determine_width(signal, ts)
end

Expand Down

0 comments on commit 1c9dff2

Please sign in to comment.