(self, domain)
return attributes, metas
domain: Orange.data.domain to encode
        return: dict mapping attribute name to type or list of values
                (based on the value of self.match_values attribute)
domain: Orange.data.domain to encode
        return: dict mapping attribute name to type or list of values
                (based on the value of self.match_values attribute)
domain : Orange . data . domain to encode return : dict mapping attribute name to type or list of values ( based on the value of self . match_values attribute )
def encode_domain(self, domain):
        """
        domain: Orange.data.domain to encode
        return: dict mapping attribute name to type or list of values
                (based on the value of self.match_values attribute)
        """

        match = self.match_values
        encode = self.encode_variables
        if match == self.MATCH_VALUES_CLASS:
            attributes = encode(domain.attributes, False)
            attributes.update(encode(domain.class_vars, True))
        else:
            attributes = encode(domain.variables, match == self.MATCH_VALUES_ALL)

        metas = encode(domain.metas, match == self.MATCH_VALUES_ALL)

        return attributes, metas
def encode_domain ( self , domain ) : match = self . match_values encode = self . encode_variables if match == self . MATCH_VALUES_CLASS : attributes = encode ( domain . attributes , False ) attributes . update ( encode ( domain . class_vars , True ) ) else : attributes = encode ( domain . variables , match == self . MATCH_VALUES_ALL ) metas = encode ( domain . metas , match == self . MATCH_VALUES_ALL ) return attributes , metas