Пример #1
0
    def infoChanged(self):
         
        Qt4_SampleChangerBrick3.infoChanged(self)

        if self.has_basket_HT:
             vials = [[VialView.VIAL_BARCODE]] *10 
             self.baskets[-1].setMatrices(vials)
Пример #2
0
    def infoChanged(self):

        Qt4_SampleChangerBrick3.infoChanged(self)

        if self.has_basket_HT:
            vials = [[VialView.VIAL_BARCODE]] * 10
            self.baskets[-1].set_matrices(vials)
Пример #3
0
    def propertyChanged(self, property_name, oldValue, newValue):
        if property_name == 'mnemonic':
            if self.sample_changer_hwobj is not None:
                self.disconnect(self.device, 'runningStateChanged',
                         self._updatePathRunning)
                self.disconnect(self.device, 'powerStateChanged',
                         self._updatePowerState)

        Qt4_SampleChangerBrick3.propertyChanged(self, property_name,
                         oldValue, newValue)

        if property_name == 'mnemonic':
            # load the new hardware object
      
            if self.sample_changer_hwobj is not None:
                self.connect(self.sample_changer_hwobj, 'runningStateChanged',
                             self._updatePathRunning)
                self.connect(self.sample_changer_hwobj, 'powerStateChanged',
                             self._updatePowerState)
           
                self._poweredOn = self.sample_changer_hwobj.isPowered()
                self._pathRunning = self.sample_changer_hwobj.isPathRunning()
                self._updateButtons()

        elif property_name == 'basketCount':
            # make sure that HT basket is added after Parent class has created all baskets
            if self.has_basket_HT:
                self.add_basket_HT()
        elif property_name == 'use_basket_HT':
            if newValue:
                if self.basket_count is not None:
                    self.has_basket_HT = True
                    self.add_basket_HT()
                else:
                    self.has_basket_HT = True
Пример #4
0
    def propertyChanged(self, property_name, oldValue, newValue):
        if property_name == 'mnemonic':
            if self.sample_changer_hwobj is not None:
                self.disconnect(self.device, 'runningStateChanged', \
                         self._updatePathRunning)
                self.disconnect(self.device, 'powerStateChanged', \
                         self._updatePowerState)

        Qt4_SampleChangerBrick3.propertyChanged(self, property_name, \
                         oldValue, newValue)

        if property_name == 'mnemonic':
            # load the new hardware object

            if self.sample_changer_hwobj is not None:
                self.connect(self.sample_changer_hwobj, 'runningStateChanged',\
                               self._updatePathRunning)
                self.connect(self.sample_changer_hwobj, 'powerStateChanged', \
                               self._updatePowerState)

                self._poweredOn = self.sample_changer_hwobj.isPowered()
                self._pathRunning = self.sample_changer_hwobj.isPathRunning()
                self._updateButtons()

        elif property_name == 'basketCount':
            # make sure that HT basket is added after Parent class has created all baskets
            if self.has_basket_HT:
                self.add_basket_HT()
        elif property_name == 'use_basket_HT':
            if newValue:
                if self.basket_count is not None:
                    self.has_basket_HT = True
                    self.add_basket_HT()
                else:
                    self.has_basket_HT = True
Пример #5
0
    def __init__(self, *args):
        Qt4_SampleChangerBrick3.__init__(self,*args)

        self.device = None  
        self.has_basket_HT = None 

        self._pathRunning = None
        self._poweredOn = None

        self.addProperty("use_basket_HT", "boolean", False)

        # display operations widget
        self.operations_widget.show()

        # remove all unwanted controls 
        self.switch_to_sample_transfer_button.hide()
        self.test_sample_changer_button.hide()
        self.scan_baskets_view.hide()
        self.current_basket_view.hide()
        self.current_sample_view.hide()
        self.reset_baskets_samples_button.hide()
        self.double_click_loads_cbox.hide()
Пример #6
0
    def __init__(self, *args):
        Qt4_SampleChangerBrick3.__init__(self, *args)

        self.device = None
        self.has_basket_HT = None

        self._pathRunning = None
        self._poweredOn = None

        self.addProperty("use_basket_HT", "boolean", False)

        # display operations widget
        self.operations_widget.show()

        # remove all unwanted controls
        self.switch_to_sample_transfer_button.hide()
        self.test_sample_changer_button.hide()
        self.scan_baskets_view.hide()
        self.current_basket_view.hide()
        self.current_sample_view.hide()
        self.reset_baskets_samples_button.hide()
        self.double_click_loads_cbox.hide()
Пример #7
0
    def sc_state_changed(self, state, previous_state=None):
        logging.getLogger("GUI").info("CATS. sc state changed %s " % (state))
        Qt4_SampleChangerBrick3.sc_state_changed(self, state, previous_state)

        self.state = state
        self._updateButtons()
Пример #8
0
    def select_sample(self, basket_no, sample_no):
        if self.has_basket_HT and basket_no == 100:
            basket_no = -1

        Qt4_SampleChangerBrick3.select_sample(self, basket_no, sample_no)
Пример #9
0
    def sc_state_changed(self, state, previous_state=None):
        logging.getLogger().debug("SC State changed %s" % str(state))
        Qt4_SampleChangerBrick3.sc_state_changed(self, state, previous_state)

        self.state = state
        self._updateButtons()
Пример #10
0
    def sc_state_changed(self, state, previous_state=None):
        logging.getLogger().debug("SC State changed %s" % str(state))
        Qt4_SampleChangerBrick3.sc_state_changed(self, state, previous_state)

        self.state = state
        self._updateButtons()
Пример #11
0
    def select_sample(self, basket_no, sample_no):
        if self.has_basket_HT and basket_no == 100:
            basket_no = -1

        Qt4_SampleChangerBrick3.select_sample(self, basket_no, sample_no)
Пример #12
0
    def sc_state_changed(self, state, previous_state=None):
        Qt4_SampleChangerBrick3.sc_state_changed(self, state, previous_state)

        self.state = state
        self._updateButtons()