Skip to content

Introduce LAST option in INSTALL and MOVE and change default behaviour#1113

Merged
rdemaria merged 5 commits into
MethodicalAcceleratorDesign:masterfrom
rdemaria:stabilize_order
Aug 15, 2022
Merged

Introduce LAST option in INSTALL and MOVE and change default behaviour#1113
rdemaria merged 5 commits into
MethodicalAcceleratorDesign:masterfrom
rdemaria:stabilize_order

Conversation

@rdemaria

Copy link
Copy Markdown
Contributor

Addressing #1055
Introduce a new option in install and move command "LAST" that controls how an element is place with respect to other elements at the same location.

It changes the default behaviour! Before, a list of install commands at the s will install the element in the reversed order, and now it will respect the command order.

New default is particularly useful for aperture markers that can be place at the same location in case of sharp edges.

@rdemaria rdemaria requested review from ldeniau and tpersson May 24, 2022 12:39
@rdemaria rdemaria changed the title Stabilize order Introduce LAST option in INSTALL and MOVE and change default behaviour May 24, 2022
@rdemaria rdemaria modified the milestones: 5.08, 5.09 May 24, 2022

@tpersson tpersson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a useful functionality but why do we change the default behaviour? It might cause problems for some users and anyone who wants to change the default behaviour can do so after this PR. Anyway, I don't feel very strongly about it so go ahead if you think there is a good reason to change the default behaviour.

@rdemaria

Copy link
Copy Markdown
Contributor Author

The reason for the change is that often it is more intuitive and practical to install markers in the same order of the input file. This is the behaviour of the sequence file. Now it is the other way around.

I think the benefit of changing the default behaviour outweighs the backward incompatibility in this case.

@rdemaria rdemaria merged commit 3364035 into MethodicalAcceleratorDesign:master Aug 15, 2022
@rdemaria rdemaria deleted the stabilize_order branch August 15, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants