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

resolution and oversample should at least be 1

parent 325b7dda
No related branches found
No related tags found
1 merge request!9Integer variables
......@@ -37,7 +37,8 @@ function ADC(; resolution=nothing, dwell_time=nothing, time_to_center=nothing, c
get_free_variable(oversample, integer=true),
)
apply_simple_constraint!(res.dwell_time, :>=, 0)
apply_simple_constraint!(res.oversample, :>=, 0)
apply_simple_constraint!(res.oversample, :>=, 1)
apply_simple_constraint!(res.resolution, :>=, 1)
if center_halfway
apply_simple_constraint!(variables.duration(res), 2 * res.time_to_center)
else
......
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