From c5cb1ed2225459e0164e06d6612013c43120dae6 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Mon, 5 Feb 2024 16:41:02 +0000 Subject: [PATCH] Add new oversample variable to constructor call --- src/readouts/ADCs.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/readouts/ADCs.jl b/src/readouts/ADCs.jl index f84ce17..d40e38b 100644 --- a/src/readouts/ADCs.jl +++ b/src/readouts/ADCs.jl @@ -25,11 +25,12 @@ struct ADC <: BuildingBlock oversample :: VariableType end -function ADC(; nsamples=nothing, dwell_time=nothing, time_to_center=nothing, center_halfway=true, kwargs...) +function ADC(; nsamples=nothing, dwell_time=nothing, time_to_center=nothing, center_halfway=true, oversample=1, kwargs...) res = ADC( get_free_variable(nsamples), get_free_variable(dwell_time), get_free_variable(time_to_center), + get_free_variable(oversample), ) @constraint global_model() res.dwell_time >= 0 if center_halfway -- GitLab