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

`rotate` needs to be defined for any block with `gradient_strength`/`slew_rate` variables

parent cf5a6bb5
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ function scanner_constraints!(model::Model, building_block::BuildingBlock, scann
# apply constraint at this level
res_bb = func(building_block)
if res_bb isa AbstractVector
if isnothing(getproperty(building_block, :rotate, true))
if isnothing(building_block.rotate)
# no rotation; apply constraint to each dimension independently
for expr in res_bb
@constraint model expr <= func(scanner)
......
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