Hide consistency sort badge for unsupported datasets
Browse files
app.py
CHANGED
|
@@ -1568,6 +1568,7 @@ def update_latent_color_control(dataset: str):
|
|
| 1568 |
Output("consistency-table", "columns"),
|
| 1569 |
Output("consistency-table", "data"),
|
| 1570 |
Output("consistency-sort-state", "children"),
|
|
|
|
| 1571 |
Output("latent-space", "figure"),
|
| 1572 |
Output("consistency-bars", "figure"),
|
| 1573 |
Output("consistency-heatmap", "figure"),
|
|
@@ -1588,7 +1589,8 @@ def update_consistency(
|
|
| 1588 |
return (
|
| 1589 |
[],
|
| 1590 |
[],
|
| 1591 |
-
|
|
|
|
| 1592 |
empty_figure(message),
|
| 1593 |
empty_figure(message),
|
| 1594 |
consistency_heatmap(None),
|
|
@@ -1603,6 +1605,7 @@ def update_consistency(
|
|
| 1603 |
column_defs([c for c in visible_cols if c in table_df.columns]),
|
| 1604 |
records(table_df),
|
| 1605 |
sort_status(sort_by, ("alignment_score", False)),
|
|
|
|
| 1606 |
latent_space_figure(dataset, model, color_mode or "condition"),
|
| 1607 |
consistency_bar_figure(dataset, df),
|
| 1608 |
consistency_heatmap(None),
|
|
|
|
| 1568 |
Output("consistency-table", "columns"),
|
| 1569 |
Output("consistency-table", "data"),
|
| 1570 |
Output("consistency-sort-state", "children"),
|
| 1571 |
+
Output("consistency-sort-state", "style"),
|
| 1572 |
Output("latent-space", "figure"),
|
| 1573 |
Output("consistency-bars", "figure"),
|
| 1574 |
Output("consistency-heatmap", "figure"),
|
|
|
|
| 1589 |
return (
|
| 1590 |
[],
|
| 1591 |
[],
|
| 1592 |
+
"",
|
| 1593 |
+
{"display": "none"},
|
| 1594 |
empty_figure(message),
|
| 1595 |
empty_figure(message),
|
| 1596 |
consistency_heatmap(None),
|
|
|
|
| 1605 |
column_defs([c for c in visible_cols if c in table_df.columns]),
|
| 1606 |
records(table_df),
|
| 1607 |
sort_status(sort_by, ("alignment_score", False)),
|
| 1608 |
+
{},
|
| 1609 |
latent_space_figure(dataset, model, color_mode or "condition"),
|
| 1610 |
consistency_bar_figure(dataset, df),
|
| 1611 |
consistency_heatmap(None),
|