Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Feb 22, 2024
1 parent b9fceaa commit f6555d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
15 changes: 7 additions & 8 deletions bin/benchpark
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def benchpark_check_tag(arg_str):
out_str += f"\n\t{tag}"
raise ValueError(out_str)
return found


def benchpark_setup(subparsers, actions_dict):
create_parser = subparsers.add_parser(
Expand Down Expand Up @@ -241,15 +241,15 @@ def benchpark_tags(subparsers, actions_dict):
help="The experiments_root you specified during Benchpark setup.",
)
create_parser.add_argument(
"-a",
"--application",
action="store",
"-a",
"--application",
action="store",
help="The application for which to find Benchpark tags",
)
create_parser.add_argument(
"-t",
"--tag",
action="store",
"-t",
"--tag",
action="store",
help="The tag for which to search in Benchpark experiments",
)
actions_dict["tags"] = benchpark_tags_handler
Expand Down Expand Up @@ -443,7 +443,6 @@ def benchpark_tags_handler(args):
print("All tags that exist in Benchpark experiments:")
for k, v in benchpark_experiments_tags.items():
print(k)
#print(benchpark_experiments_tags)


if __name__ == "__main__":
Expand Down
9 changes: 8 additions & 1 deletion docs/generate-benchmark-list.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ def main(workspace):
cmd = ["../bin/benchpark", "tags", "-a", bmark, workspace]
byte_data = subprocess.run(cmd, capture_output=True)
tags = str(byte_data.stdout, "utf-8")
tags = tags.replace("[", "").replace("]", "").replace("'", "").replace(" ", "").replace("\n", "").split(",")
tags = (
tags.replace("[", "")
.replace("]", "")
.replace("'", "")
.replace(" ", "")
.replace("\n", "")
.split(",")
)
for t in tags:
for k, v in tag_dicts.items():
if t in v:
Expand Down

0 comments on commit f6555d5

Please sign in to comment.