pyboxbuilder.compartments.labels.build_compartment_label

pyboxbuilder.compartments.labels.build_compartment_label(name: str, comp_width: float, comp_length: float, mode: str = 'mmu', floor_z: float = 0.0) → Bosl2Solid | None[source]

Return a convenience wrapper for building a compartment floor label.

Parameters:
name: str

Animal/compartment name.

comp_width: float

Compartment width including spacing.

comp_length: float

Compartment length including spacing.

mode: str = 'mmu'

‘mmu’ or ‘single’.

floor_z: float = 0.0

Z position of the compartment floor.

Returns:

Bosl2Solid positioned at the floor level, or None.