Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort kwargs in lh.move_resource #359

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rickwierenga
Copy link
Member

both LiquidHandlerBackend.{pick_up,drop}_resource take can kwargs. These are often different (eg channels for core-gripper pickup in STAR - not an argument to drop). In the past, lh would send the full set of backend_kwargs to both mehods which caused an error for some backend methods if only one of {pick_up,drop} accepted a kwargs. This PR fixes that by removing kwargs not accepted by the backend method before passing them.

One complication is truly unnecessary params are removed in both cases, without an error to the user. I might add a special error case in lh.move_resource, but this isn't the prettiest. tbd

ref: i split move_resource as a backend method into separate methods in #328

@rickwierenga rickwierenga requested a review from BioCam January 15, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant