def infoChanged(self): Qt4_SampleChangerBrick3.infoChanged(self) if self.has_basket_HT: vials = [[VialView.VIAL_BARCODE]] *10 self.baskets[-1].setMatrices(vials)
def infoChanged(self): Qt4_SampleChangerBrick3.infoChanged(self) if self.has_basket_HT: vials = [[VialView.VIAL_BARCODE]] * 10 self.baskets[-1].set_matrices(vials)
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
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
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()
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()
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()
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)
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()
def sc_state_changed(self, state, previous_state=None): Qt4_SampleChangerBrick3.sc_state_changed(self, state, previous_state) self.state = state self._updateButtons()