def get_container_at(self, slot):
        """Returns the container object assigned to the slot passed in

        :param slot: the slot where the analyses are located
        :type slot: int
        :return: the container (analysis request, reference sample, etc.)
        """

        # ensure we have an integer
        slot = to_int(slot)

        if slot < 1:
            return None

        layout = self.getLayout()

        for pos in layout:
            layout_slot = to_int(pos['position'])
            uid = pos['container_uid']
            if layout_slot != slot or not uid:
                continue
            return api.get_object_by_uid(uid)

        return None
def get_container_at ( self , slot ) : slot = to_int ( slot ) if slot < 1 : return None layout = self . getLayout ( ) for pos in layout : layout_slot = to_int ( pos [ 'position' ] ) uid = pos [ 'container_uid' ] if layout_slot != slot or not uid : continue return api . get_object_by_uid ( uid ) return None
Returns the container object assigned to the slot passed in

        :param slot: the slot where the analyses are located
        :type slot: int
        :return: the container (analysis request, reference sample, etc.)