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 35f8a75 commit 1ec1607
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,19 +375,17 @@ def check_tools_on_servers(tool_ids: List[str]) -> pd.DataFrame:
return pd.DataFrame(data, index=GALAXY_SERVER_URLS)


def get_tool_count_per_server(tool_ids: str) -> pd.Series:
def get_tool_count_per_server(tool_ids: Any) -> pd.Series:
"""
Aggregate tool count for each suite for each
server into (Number of tools on server/Total number of tools)
:param tool_ids: string of tools ids for one suite
"""
if isinstance(tool_ids, str):
if not isinstance(tool_ids, str):
series = pd.Series({key: None for key in GALAXY_SERVER_URLS})
else:
tool_id_list: list = []
for x in tool_ids.split(","):
tool_id_list.append(x.strip(" "))
tool_id_list = [x.strip(" ") for x in tool_ids.split(",")]
data = check_tools_on_servers(tool_id_list)
result_df: pd.DataFrame = pd.DataFrame()
result_df["true_count"] = data.sum(axis=1).astype(str)
Expand Down

0 comments on commit 1ec1607

Please sign in to comment.