Spaces:
Runtime error
Runtime error
update coarse distance metric
Browse filesSigned-off-by: Samhita Alla <[email protected]>
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 >
|
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": "
|
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,
|