Jhsmit commited on
Commit
e1dfecd
1 Parent(s): d09a6c3

feat: always show tooltip data

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -243,12 +243,9 @@ def Page():
243
  elif load_result.finished:
244
  fold_data: AlphaFoldData = load_result.value
245
 
246
- if color_mode.value == "chain":
247
- color_data = NO_COLOR_DATA
248
- tooltip_data = NO_TOOLTIP_DATA
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,