Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Nov 2, 2023
1 parent fca1039 commit d814daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def get_tool_count_per_server(tool_ids: str) -> str:
:param tool_ids: string of tools ids for one suite
"""
if type(tool_ids) != str:
if isinstance(tool_ids, str):
fallback_series = pd.Series({key: None for key in GALAXY_SERVER_URLS})
return fallback_series

Expand All @@ -426,7 +426,7 @@ def get_tool_count_per_server(tool_ids: str) -> str:
result_df["true_count"] = data.sum(axis=1).astype(str)
result_df["false_count"] = len(data.columns)
result_df["counts"] = result_df.apply(
lambda x: "({0}/{1})".format(x["true_count"], x["false_count"]), axis=1
lambda x: "({}/{})".format(x["true_count"], x["false_count"]), axis=1
)

count_row = result_df["counts"].T
Expand Down

0 comments on commit d814daf

Please sign in to comment.