Repository navigation
Conversation
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.
Summary
Replaces the WEI-based KLA REST node with a MADSci 0.8 node module. The layout follows our other MADSci modules (a4s_sealer, brooks_xpeel).
Node
KLANodesubclasses MADSci'sRestNode, replacing the hand-written FastAPI app and its global state.load_protocol(protocol_files: list[str], message: str | None)run_protocol(protocol_files: list[str], message: str | None)check_status(): asks the device whether a sample run is in progressKLANodeConfig):kla_urlandrequest_timeout. These can be set with CLI flags (--kla_urlstill works),NODE_*environment variables, or.env.Driver
None, so failed requests showed up as successful actions.KLARequestType).__main__example, which passedhostname=instead ofurl=.Infrastructure
ghcr.io/ad-sdl/madsci:v0.8.0and installs withuv.compose.yamluses host networking. Node identity and URL come fromNODE_NAME,NODE_URL, andKLA_URLin.env(seeexample.env).wei.compose.yaml, the workcell and workflow YAMLs,src/test/, and theMakefile. A.justfilereplaces the Makefile, matching our other modules.madsci.*~=0.8.0instead ofad_sdl.wei, and Python 3.10 or newer is required.pytestdirectly instead of starting the WEI Docker stack.Breaking changes
get_output_fileis removed. The driver method was an empty stub and never returned a file. It can come back as aPath-returning action once the KLA server supports sending output.protocol_filesis now required forload_protocolandrun_protocol. The old node ignored action arguments, so these actions always failed with "Protocol file list was not provided". Workflows calling them need to passprotocol_files.Testing
kla_urlcan be set with both--kla_urlandNODE_KLA_URL.Reviewer notes
load_protocolstill sends request type 4 ("go to load sample"), as the old code did. Please confirm that's what the instrument expects for this action.