diff --git a/src/readouts/ADCs.jl b/src/readouts/ADCs.jl index f5c0c2d0a0e8ef340ec7d69453e2a3e8d9d29fb2..cc10a957c62718864a572902da3b0c9274ee19ec 100644 --- a/src/readouts/ADCs.jl +++ b/src/readouts/ADCs.jl @@ -32,7 +32,7 @@ function ADC(nsamples; dwell_time=nothing, time_to_center=nothing, center_halfwa ) @constraint global_model() res.dwell_time >= 0 if center_halfway - @constraint global_model() 2 * res.time_to_center == duration(res) + apply_simple_constraint!(duration(res), 2 * res.time_to_center) else @constraint global_model() res.time_to_center >= 0 @constraint global_model() res.time_to_center <= duration(res)