pylabrobot.lib.liquid_handling.pipette_batch_scheduling.validate_channel_selections#

pylabrobot.lib.liquid_handling.pipette_batch_scheduling.validate_channel_selections(containers: List[Container], num_channels: int, use_channels: List[int] | None = None) → List[int]#

Validate and normalize channel selection.

If use_channels is None, defaults to [0, 1, ..., len(containers)-1].

Returns:

Validated list of channel indices.

Raises:

ValueError – If channels are empty, out of range, or if containers and use_channels have different lengths.

Parameters:
Return type:

List[int]