Samhita commited on
Commit
c64af88
1 Parent(s): 61dd727

update coarse distance metric

Browse files

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,7 +77,7 @@ def get_plotly_graph(
77
 
78
  hierarchy_to_coarse, hierarchy_to_fine = compute_distance(map_data)
79
  what_to_consider = {"hierarchy"}
80
- if hierarchy_to_coarse > 30:
81
  what_to_consider.add("coarse")
82
  if hierarchy_to_fine > 30:
83
  what_to_consider.add("fine")
@@ -112,7 +112,7 @@ def get_plotly_graph(
112
  color_discrete_map={
113
  "hierarchy": "fuchsia",
114
  "coarse": "blue",
115
- "fine": "blue",
116
  },
117
  zoom=2,
118
  height=500,
 
77
 
78
  hierarchy_to_coarse, hierarchy_to_fine = compute_distance(map_data)
79
  what_to_consider = {"hierarchy"}
80
+ if hierarchy_to_coarse > 5000:
81
  what_to_consider.add("coarse")
82
  if hierarchy_to_fine > 30:
83
  what_to_consider.add("fine")
 
112
  color_discrete_map={
113
  "hierarchy": "fuchsia",
114
  "coarse": "blue",
115
+ "fine": "yellow",
116
  },
117
  zoom=2,
118
  height=500,