ZahirJS commited on
Commit
c6aedab
·
verified ·
1 Parent(s): dc2fb0d

Update synoptic_chart_generator.py

Browse files
Files changed (1) hide show
  1. synoptic_chart_generator.py +2 -4
synoptic_chart_generator.py CHANGED
@@ -4,15 +4,13 @@ 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: # base_color is now correctly used
8
  """
9
  Generates a synoptic chart (horizontal flowchart) from JSON input.
10
 
11
  Args:
12
  json_input (str): A JSON string describing the synoptic chart structure.
13
  It must follow the Expected JSON Format Example below.
14
- base_color (str): The hexadecimal color string (e.g., '#19191a') for the base
15
- color of the nodes, from which a gradient will be generated.
16
 
17
  Returns:
18
  str: The filepath to the generated PNG image file.
@@ -77,7 +75,7 @@ def generate_synoptic_chart(json_input: str, base_color: str) -> str: # base_col
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(
 
4
  import os
5
  from graph_generator_utils import add_nodes_and_edges
6
 
7
+ def generate_synoptic_chart(json_input: str) -> str: # Removed base_color parameter
8
  """
9
  Generates a synoptic chart (horizontal flowchart) from JSON input.
10
 
11
  Args:
12
  json_input (str): A JSON string describing the synoptic chart structure.
13
  It must follow the Expected JSON Format Example below.
 
 
14
 
15
  Returns:
16
  str: The filepath to the generated PNG image file.
 
75
  }
76
  )
77
 
78
+ base_color = '#19191a' # Hardcoded base color
79
 
80
  # Central node styling (rounded box, dark color)
81
  dot.node(