Skip to content

similarity_flooding case where e[1].long_name=None in __get_attribute_tuple #54

@cchristodoulaki

Description

@cchristodoulaki

Hi Valentine authors!

I am having trouble with a bug that seems to be coming from Valentine, but I am unsure:

  • in similarity_flooding.py, is it expected that long_name may sometimes be None? (this is causing my experiments to crash)

  • dumbish question: is it possible that column_name should be =e[0].long_name ?

    def __get_attribute_tuple(self, node):
        column_name = None
        if node in self.__graph1.nodes():
            for e in self.__graph1.out_edges(node):
                links = self.__graph1.get_edge_data(e[0], e[1])
                if links.get('label') == "name":


                    column_name = e[1].long_name  ##### LONG_NAME is None
                    
                   
        else:
            for e in self.__graph2.out_edges(node):
                links = self.__graph2.get_edge_data(e[0], e[1])
                if links.get('label') == "name":
                    column_name = e[1].long_name
        return column_name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions