Esempio n. 1
0
    def add_user_element(self, element, index=None):
        elem_type = element.get_type()
        if elem_type == ElementType.Motor:
            pass
        elif elem_type == ElementType.PseudoMotor:
            # TODO: make this happen
            pass
        else:
            raise Exception("element %s is not a motor" % element.name)

        PoolBaseGroup.add_user_element(self, element, index=index)
Esempio n. 2
0
    def add_user_element(self, element, index=None):
        elem_type = element.get_type()
        if elem_type == ElementType.Motor:
            pass
        elif elem_type == ElementType.PseudoMotor:
            # TODO: make this happen
            pass
        else:
            raise Exception("element %s is not a motor" % element.name)

        PoolBaseGroup.add_user_element(self, element, index=index)
Esempio n. 3
0
 def add_user_element(self, element, index=None):
     index = PoolBaseGroup.add_user_element(self, element, index)
     element.add_pseudo_element(self)
     return index