Implement simple mechanis simulator for Hamilton STAR#1065
Open
burnpanck wants to merge 31 commits into
Open
Conversation
Also, bumps minimum python version to 3.10.
Contributor
Author
|
I should perhaps also add that the mechanical simulation is still rather crude. We don't do liquid level detection or surface following. We assume all movements are using the same max-speed and acceleration values (per drive type). We don't stagger the pip channels. The main goal is to have at least some estimate rather than none, but there is no intent to be 100 % accurate. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds a
STARSimulatorwhich tries to keep track of drive positions for all mayor drives on the STAR (including 96 head and iSWAP). Our use-case are protocol runtime estimates, so the only thing done with the actual drive movements areawait anyio.sleep(move_time). The PR depends on the structured concurrency branch, mainly because that one enables running on thetrioevent loop. Trio has that amazingMockClock, which fast-forwards whenever everything is sleeping. Note that the PR also bumps the minimum python version to 3.10, because we extensively use the 3.10matchstatement. While it could certainly be written without that, I have no interest in writing code using outdated syntax. I anticipate that this may be a blocker from actually merging this as-is, but perhaps it's useful to @BioCam in his iSWAP quest anyway.