Skip to content

Commit

Permalink
Should test locally
Browse files Browse the repository at this point in the history
  • Loading branch information
iquasere committed Jan 3, 2024
1 parent 75504e2 commit 91ddeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keggcharter.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def read_input_file(args: argparse.Namespace) -> pd.DataFrame:
}
for col in ["kegg_column", "ko_column", "ec_column", "cog_column"]:
if getattr(args, col):
if result[getattr(args, col)].apply(bad_value, patterns[col][0]).sum() > 0:
if result[getattr(args, col)].apply(bad_value, pattern=patterns[col][0]).sum() > 0:
sys.exit(f"Invalid format for '{getattr(args, col)}' column. Use only '{patterns[col][1]}' format, "
f"optionally separated by commas.")
return result
Expand Down

0 comments on commit 91ddeb6

Please sign in to comment.