prakharg24 commited on
Commit
502d412
·
verified ·
1 Parent(s): 0dedf64

Update my_pages/multiverse.py

Browse files
Files changed (1) hide show
  1. my_pages/multiverse.py +2 -2
my_pages/multiverse.py CHANGED
@@ -23,7 +23,7 @@ choices_list = [
23
  ]}
24
  ]
25
 
26
- def build_tree_and_trace_path(selected_path, spread_factor=50):
27
  """
28
  Build tree nodes and edges. Then trace selected_path (one choice per stage)
29
  by walking children of the current node to find the matching label at each stage.
@@ -54,7 +54,7 @@ def build_tree_and_trace_path(selected_path, spread_factor=50):
54
  next_nodes = []
55
 
56
  # scaling: huge spread at stage 1, tapering off deeper
57
- scale = spread_factor ** (1.0 / stage_idx**2)
58
 
59
  for parent_order, parent_idx in enumerate(prev_nodes):
60
  px, py = node_positions[parent_idx]
 
23
  ]}
24
  ]
25
 
26
+ def build_tree_and_trace_path(selected_path, spread_factor=500):
27
  """
28
  Build tree nodes and edges. Then trace selected_path (one choice per stage)
29
  by walking children of the current node to find the matching label at each stage.
 
54
  next_nodes = []
55
 
56
  # scaling: huge spread at stage 1, tapering off deeper
57
+ scale = spread_factor ** (1.0 / stage_idx)
58
 
59
  for parent_order, parent_idx in enumerate(prev_nodes):
60
  px, py = node_positions[parent_idx]