Spaces:
Sleeping
Sleeping
feat: always show tooltip data
Browse files
app.py
CHANGED
@@ -243,12 +243,9 @@ def Page():
|
|
243 |
elif load_result.finished:
|
244 |
fold_data: AlphaFoldData = load_result.value
|
245 |
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
else:
|
250 |
-
color_data = fold_data.color_data
|
251 |
-
tooltip_data = fold_data.tooltip_data
|
252 |
|
253 |
with solara.Card():
|
254 |
theme = "dark" if dark_effective else "light"
|
@@ -256,7 +253,7 @@ def Page():
|
|
256 |
height="calc(100vh - 150px)",
|
257 |
custom_data=fold_data.custom_data,
|
258 |
color_data=color_data,
|
259 |
-
tooltips=tooltip_data,
|
260 |
show_water=False,
|
261 |
spin=spin.value,
|
262 |
theme=theme,
|
|
|
243 |
elif load_result.finished:
|
244 |
fold_data: AlphaFoldData = load_result.value
|
245 |
|
246 |
+
color_data = (
|
247 |
+
NO_COLOR_DATA if color_mode.value == "chain" else fold_data.color_data
|
248 |
+
)
|
|
|
|
|
|
|
249 |
|
250 |
with solara.Card():
|
251 |
theme = "dark" if dark_effective else "light"
|
|
|
253 |
height="calc(100vh - 150px)",
|
254 |
custom_data=fold_data.custom_data,
|
255 |
color_data=color_data,
|
256 |
+
tooltips=fold_data.tooltip_data,
|
257 |
show_water=False,
|
258 |
spin=spin.value,
|
259 |
theme=theme,
|