commands
Command-group definitions for the fluid-control CLI.
This module turns the imperative methods on
FluidControlSession into a composable
[CommandGroup][fluid_control.cli.compose.core.CommandGroup]. The resulting group can
be run standalone by fluid_control.cli.cli or mounted as a child of a
super-CLI's root group (e.g. a liquid-handling system exposing this component
under pipettor).
Gantry / mount-arm motion commands are collected into their own child group so
that, when composed, they appear under a gantry namespace
(e.g. gantry home).
build_gantry_group(session)
Build the gantry command group bound to a session's mount arm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
FluidControlSession
|
The |
required |
Returns:
| Type | Description |
|---|---|
CommandGroup
|
A [ |
CommandGroup
|
containing motion and powerstage commands. |
Source code in src/fluid_control/cli/commands.py
build_group(session)
Build the composable command group for a fluid-control session.
Registers the fluid-control verbs (valve, direct, dispense, aspirate, mix,
pressure, classes, channels, status) and tip verbs (pickup, eject) as leaf
commands, and mounts the gantry motion commands under a gantry child
namespace when a gantry is configured on session.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
FluidControlSession
|
The |
required |
Returns:
| Type | Description |
|---|---|
CommandGroup
|
A [ |
CommandGroup
|
that can be run standalone or mounted into a super-CLI's root group. |
Source code in src/fluid_control/cli/commands.py
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 | |