File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1970,9 +1970,9 @@ def pyg_to_graph(
19701970 """
19711971 # all fields in PyG Data object
19721972 kwargs = {}
1973- kwargs ["node_feature" ] = data .x if "x" in data .keys else None
1973+ kwargs ["node_feature" ] = data .x if "x" in data .keys () else None
19741974 kwargs ["edge_feature" ] = (
1975- data .edge_attr if "edge_attr" in data .keys else None
1975+ data .edge_attr if "edge_attr" in data .keys () else None
19761976 )
19771977 kwargs ["node_label" ], kwargs ["edge_label" ] = None , None
19781978 kwargs ["graph_feature" ], kwargs ["graph_label" ] = None , None
@@ -2013,7 +2013,7 @@ def pyg_to_graph(
20132013
20142014 # include other arguments that are in the kwargs of pyg data object
20152015 keys_processed = ["x" , "y" , "edge_index" , "edge_attr" ]
2016- for key in data .keys :
2016+ for key in data .keys () :
20172017 if key not in keys_processed :
20182018 kwargs [key ] = data [key ]
20192019
You can’t perform that action at this time.
0 commit comments