Esempio n. 1
0
 def get_value_representation(cls, value):
     """ Return displaying data for value """
     return dict_key_from_value(cls.dictionary, value)
Esempio n. 2
0
 def get_port_name(self, port):
     iport_name = dict_key_from_value(self.input_ports, port)
     if iport_name is not None:
         return iport_name
     oport_name = dict_key_from_value(self.output_ports, port)
     return oport_name