File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ def _create_variable_dict(equation_response: EquationExtractionResponse) -> dict
408
408
for equation in equation_response .equations :
409
409
for symbol in equation .latex_symbols :
410
410
# Only add if not already present (avoid duplicates)
411
- if symbol . key not in variable_dict :
412
- variable_dict [symbol . key ] = {"name" : symbol . value }
411
+ if symbol [ ' key' ] not in variable_dict :
412
+ variable_dict [symbol [ ' key' ]] = {"name" : symbol [ ' value' ] }
413
413
414
414
return variable_dict
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def generate_relation_graph(equations: List[EquationExtraction]) -> str:
58
58
# Add variable nodes and edges
59
59
for symbol in eq .latex_symbols :
60
60
# Normalize the variable name
61
- var_name = normalize_latex_symbol (symbol . key )
61
+ var_name = normalize_latex_symbol (symbol [ " key" ] )
62
62
if var_name not in all_variables :
63
63
net .add_node (
64
64
var_name ,
@@ -67,7 +67,7 @@ def generate_relation_graph(equations: List[EquationExtraction]) -> str:
67
67
shape = "dot" ,
68
68
size = 20 ,
69
69
font = dict (size = 16 , color = "#000000" ),
70
- title = f"{ var_name } : { symbol . value } " ,
70
+ title = f"{ var_name } : { symbol [ ' value' ] } " ,
71
71
)
72
72
all_variables .add (var_name )
73
73
You can’t perform that action at this time.
0 commit comments