def __init__(self, layout, regard_controls, number_sectors=4, parent=None): """ Constructor. :param regard_controls: Shall controls positions be regarded (*True*) or be ignored (*False* - floating positions are always regarded)? :type regard_controls: :class:`bool` """ RackSectorAssociator.__init__(self, layout, number_sectors=number_sectors, parent=parent) #: Flag indicating if control (Fixed) position should be considered. self.regard_controls = regard_controls
def _get_molecule_design_pool_id(self, layout_pos): """ In addition to the superclass method fixed positions are only regarded if :attr:`regard_controls` is *True*. """ if not layout_pos is None and layout_pos.is_fixed and \ not self.regard_controls: result = None else: result = \ RackSectorAssociator._get_molecule_design_pool_id(self, layout_pos) return result
def _check_input(self): RackSectorAssociator._check_input(self) self._check_input_class('"regard controls" flag', self.regard_controls, bool)