def set_eval(self, eval_id, definition, result, status): """Constructs and adds an Eval object to the evaluations list. :param eval_id: Unique identifier for the evaluation. :type eval_id: str :param definition: Description of the evaluation. :type definition: str :param result: Description of the outcome of the evaluation. :type result: str :param status: Outcome of the evaluation. :type status: str """ evl = eval.Eval(eval_id, definition, result, status) self.evaluations.append(evl)
def setUp(self): self.ticket1 = ticket.ImportTicket() self.src1 = source.Source() self.src1.id = "L5_SRC_1" self.src2 = source.Source() self.src2.id = "L5_SRC_2" self.src3 = source.Source() self.src3.id = "L5_SRC_3" self.cds1 = cds.Cds() self.cds1.id = "L5_CDS_1" self.cds2 = cds.Cds() self.cds2.id = "L5_CDS_2" self.cds3 = cds.Cds() self.cds3.id = "L5_CDS_3" self.genome1 = genome.Genome() self.genome1.type = "flat_file" self.genome1.cds_features.append(self.cds1) self.genome1.cds_features.append(self.cds2) self.genome1.source_features.append(self.src1) self.genome1.source_features.append(self.src2) self.genome2 = genome.Genome() self.genome2.type = "mysql" self.genome_pair1 = genomepair.GenomePair() self.genome_pair2 = genomepair.GenomePair() self.bndl = bundle.Bundle() self.bndl.ticket = self.ticket1 self.bndl.genome_dict[self.genome1.type] = self.genome1 self.bndl.genome_dict[self.genome2.type] = self.genome2 self.bndl.genome_pair_dict["genome_pair1"] = self.genome_pair1 self.bndl.genome_pair_dict["genome_pair2"] = self.genome_pair2 self.eval_correct1 = eval.Eval(status="correct") self.eval_correct2 = eval.Eval(status="correct") self.eval_error1 = eval.Eval(status="error") self.eval_error2 = eval.Eval(status="error")
def setUp(self): self.eval_result = eval.Eval()