ZahirJS commited on
Commit
4dfdfd3
·
verified ·
1 Parent(s): a24e293

Update synoptic_chart_generator.py

Browse files
Files changed (1) hide show
  1. synoptic_chart_generator.py +2 -6
synoptic_chart_generator.py CHANGED
@@ -4,7 +4,7 @@ from tempfile import NamedTemporaryFile
4
  import os
5
  from graph_generator_utils import add_nodes_and_edges
6
 
7
- def generate_synoptic_chart(json_input: str, base_color: str) -> str:
8
  """
9
  Generates a synoptic chart (horizontal flowchart) from JSON input.
10
 
@@ -77,11 +77,7 @@ def generate_synoptic_chart(json_input: str, base_color: str) -> str:
77
  }
78
  )
79
 
80
- # Ensure base_color is valid, fallback if not
81
- if not isinstance(base_color, str) or not base_color.startswith('#') or len(base_color) != 7:
82
- base_color = '#19191a' # Fallback to default dark if invalid
83
-
84
- base_color = '#19191a' # Base color for the central node and gradient
85
 
86
  # Central node styling (rounded box, dark color)
87
  dot.node(
 
4
  import os
5
  from graph_generator_utils import add_nodes_and_edges
6
 
7
+ def generate_synoptic_chart(json_input: str, base_color: str) -> str: # base_color is now correctly used
8
  """
9
  Generates a synoptic chart (horizontal flowchart) from JSON input.
10
 
 
77
  }
78
  )
79
 
80
+ # This line was REMOVED to ensure the passed base_color is used: base_color = '#19191a'
 
 
 
 
81
 
82
  # Central node styling (rounded box, dark color)
83
  dot.node(