pylabrobot.lib.liquid_handling.channel_positioning.required_spacing_between#
- pylabrobot.lib.liquid_handling.channel_positioning.required_spacing_between(channel_spacings: List[float], i: int, j: int) float#
Compute the required center-to-center distance between channels i and j.
Each channel’s spacing value is its diameter - the minimum distance its center must maintain from any neighbor. For adjacent channels, the required distance is the sum of both channels’ radii (half-spacings), ceiling-rounded to 0.1mm for safety. For non-adjacent channels, the distance is the sum of all intermediate adjacent-pair required spacings.
- Parameters:
- Returns:
Required center-to-center distance in mm, ceiling-rounded to 0.1mm.
- Return type: