def send2Labbook(self): """Send matrix to selected labbook""" #get name cols = [''] + self.DB.getSimpleFields() DB = self.DB mpDlg = MultipleValDialog(title='Send to Labbook', initialvalues=(self.currname, cols), labels=('table name', 'exp data column'), types=('string', 'list'), parent=self.mainwin) if mpDlg.result == False: return name = mpDlg.results[0] expcol = mpDlg.results[1] M = DBActions.sendDB2Labbook(DB, recs=None, cols=['Mutations', expcol], name=name) for m in self.matrices: matrix = self.matrices[m] if matrix != None: M = self.mergeMatrix(matrix, M) self.DB.createLabbookSheet(name, M) self.parent.startLabbook('ALL') return
def send2Labbook(self): """Send matrix to selected labbook""" #get name cols = ['']+self.DB.getSimpleFields() DB=self.DB mpDlg = MultipleValDialog(title='Send to Labbook', initialvalues=(self.currname, cols), labels=('table name','exp data column'), types=('string','list'), parent=self.mainwin) if mpDlg.result == False: return name = mpDlg.results[0] expcol = mpDlg.results[1] M = DBActions.sendDB2Labbook(DB,recs=None,cols=['Mutations',expcol],name=name) for m in self.matrices: matrix = self.matrices[m] if matrix != None: M = self.mergeMatrix(matrix, M) self.DB.createLabbookSheet(name, M) self.parent.startLabbook('ALL') return