def _loadData(self, barcode): pp = Crims.getProcessingPlan(barcode, self.crims_url) if pp is None: msg = "No information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").error(msg) else: msg = "Information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").info(msg) self._setInfo(True, pp.Plate.Barcode, True) for x in pp.Plate.xtal_list: cell = self.getComponentByAddress( Cell._getCellAddress(x.Row, x.Column)) cell._setInfo(True, "", True) drop = self.getComponentByAddress( Drop._getDropAddress(cell, x.Shelf)) drop._setInfo(True, "", True) xtal = Xtal(drop, drop.getNumberOfComponents()) xtal._setInfo(True, x.PinID, True) xtal._setImageURL(x.IMG_URL) xtal._setImageX(x.offsetX) xtal._setImageY(x.offsetY) xtal._setLogin(x.Login) xtal._setName(x.Sample) xtal._setInfoURL(x.SUMMARY_URL) drop._addComponent(xtal) return pp
def _loadData(self, barcode): processing_plan = Crims.get_processing_plan(barcode, self.crims_url) if processing_plan is None: msg = "No information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").error(msg) else: msg = "Information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").info(msg) self._setInfo(True, processing_plan.plate.barcode, True) for x in processing_plan.plate.xtal_list: cell = self.getComponentByAddress(Cell._getCellAddress(x.row, x.column)) cell._setInfo(True,"",True) drop = self.getComponentByAddress(Drop._getDropAddress(cell, x.shelf)) drop._setInfo(True,"",True) xtal = Xtal(drop,drop.getNumberOfComponents()) xtal._setInfo(True, x.pin_id,True) xtal._setImageURL(x.image_url) xtal._setImageX(x.offset_x) xtal._setImageY(x.offset_y) xtal._setLogin(x.login) xtal._setName(x.sample) xtal._setInfoURL(x.summary_url) drop._addComponent(xtal) return processing_plan
def _loadData(self, barcode): processing_plan = Crims.get_processing_plan(barcode, self.crims_url) if processing_plan is None: msg = "No information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").error(msg) else: msg = "Information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").info(msg) self._setInfo(True, processing_plan.plate.barcode, True) for x in processing_plan.plate.xtal_list: cell = self.getComponentByAddress( Cell._getCellAddress(x.row, x.column)) cell._setInfo(True, "", True) drop = self.getComponentByAddress( Drop._getDropAddress(cell, x.shelf)) drop._setInfo(True, "", True) xtal = Xtal(drop, drop.getNumberOfComponents()) xtal._setInfo(True, x.pin_id, True) xtal._setImageURL(x.image_url) xtal._setImageX(x.offset_x) xtal._setImageY(x.offset_y) xtal._setLogin(x.login) xtal._setName(x.sample) xtal._setInfoURL(x.summary_url) drop._addComponent(xtal) return processing_plan
def _loadData(self, barcode): pp = Crims.getProcessingPlan(barcode, self.crims_url) if pp is None: msg = "No information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").error(msg) else: msg = "Information about plate with barcode %s found in CRIMS" % barcode logging.getLogger("user_level_log").info(msg) self._setInfo(True,pp.Plate.Barcode,True) for x in pp.Plate.xtal_list: cell = self.getComponentByAddress(Cell._getCellAddress(x.Row, x.Column)) cell._setInfo(True,"",True) drop = self.getComponentByAddress(Drop._getDropAddress(cell,x.Shelf)) drop._setInfo(True,"",True) xtal = Xtal(drop,drop.getNumberOfComponents()) xtal._setInfo(True,x.PinID,True) xtal._setImageURL(x.IMG_URL) xtal._setImageX(x.offsetX) xtal._setImageY(x.offsetY) xtal._setLogin(x.Login) xtal._setName(x.Sample) xtal._setInfoURL(x.SUMMARY_URL) drop._addComponent(xtal) return pp