Skip to content

Commit

Permalink
Dont show header of non present column
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Feb 16, 2024
1 parent ceba70f commit 383c1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haddock/libs/libplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def _generate_clustered_table_html(
{ 'key': "cluster_id", 'label': "Cluster ID" },
{ 'key': "n", 'label': "Cluster size" },
] + [
{'key': k, 'label': v, 'type': 'stats'} for k, v in AXIS_NAMES.items()
{'key': k, 'label': v, 'type': 'stats'} for k, v in AXIS_NAMES.items() if k in df.columns
] + [
{ 'key': f"best{i}", 'label': f"Nr {i} best structure", 'sortable': False, 'type': "structure" } for i in range(1, nr_best_columns + 1)
]
Expand Down

0 comments on commit 383c1f9

Please sign in to comment.