Ejemplo n.º 1
0
 def get_sample_label_from_new_label(self, new_label):
     for cur_lbl in self.labels:
         if new_label == cur_lbl.new_label:
             return cur_lbl.source_lbls[0]
     ELib.out("Unknown NewLabel to map!")
     return -10
Ejemplo n.º 2
0
 def get_correct_new_label(self, lbl):
     for cur_lbl in self.labels:
         if cur_lbl.is_source(lbl):
             return cur_lbl.new_label
     ELib.out("Unknown label to map!")
     return -10