Added in two_leg turnaround method #968
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added in a new "two_leg" turnaround method and updated many of the turnaround docstrings.
Description
I've added in the ability to explicitly call a "two_leg" turnaround which calls a "_gen_three_leg_turnaround" with
second_leg_time=0. This was already being done for type2 and type3 scans but can now be called explicitly by the LAT and the SATs ingenerate_constant_velocity_scan. I've updated the type2 and type3 scan generation functions to use the two_leg turnaround by default (which is the exact same functionality as was being done before). The LAT type2/3 scans should be completely unaffected by these changes.I've also gone through and updated many of the docstrings for these generate scan functions to include all turnaround method information.
Motivation and Context
This change lets us use
second_leg_time=0turnarounds in the constant velocity scans for the SATs. I've shown these to be advantageous (especially for satp2) over the standard turnarounds.How Has This Been Tested?
I tested two_leg turnarounds briefly on satp2 and satp1, but this exact implementation of the code has not been run. We can run this for a few minutes just to check for any syntax or spelling errors if necessary.
Types of changes
Checklist: