Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Feb 14, 2024
1 parent 4dcba53 commit 8194eff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/haddock/libs/libplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def report_plots_handler(plots, shared_xaxes=False, shared_yaxes=False):
return fig


def find_best_struct(df: pd.DataFrame, max_best_structs = 4) -> pd.DataFrame:
def find_best_struct(df: pd.DataFrame, max_best_structs: int = 4) -> pd.DataFrame:
"""Find best structures for each cluster.
Args:
Expand Down Expand Up @@ -902,7 +902,7 @@ def _generate_html_head(step):

def _generate_unclustered_table_html(
table_id: str, df: pd.DataFrame
):
) -> str:
data = df.to_json(orient='records')
headers = [
{ 'key': "caprieval_rank", 'label': "Structure Rank", 'sorted': "asc" },
Expand Down Expand Up @@ -931,7 +931,7 @@ def _generate_unclustered_table_html(

def _generate_clustered_table_html(
table_id: str, df: pd.DataFrame
):
) -> str:
data = df.to_json(orient='records')
nr_best_columns = df.filter(like="best").shape[1]
headers = [
Expand Down

0 comments on commit 8194eff

Please sign in to comment.