Skip to content

Commit

Permalink
starting tags list into table
Browse files Browse the repository at this point in the history
- parsing application.py for tags list, split across multiple lines
  • Loading branch information
slabasan committed Jan 31, 2024
1 parent 838721d commit 29e033e
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions docs/generate-tags-list.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python3

import glob

import pandas as pd
import yaml
import os
Expand All @@ -23,8 +21,17 @@ def benchpark_benchmarks(benchmarks):
return benchmarks


def join_dicts(dict1, dict2):
print(dict1)
print(dict2)
return(dict2.update(dict1))


def main():
f = "../bin/benchpark_tags.yaml"
benchmarks = list()
benchpark_benchmarks(benchmarks)

f = "../tags.yaml"
with open(f, "r") as stream:
try:
data = yaml.safe_load(stream)
Expand All @@ -34,15 +41,26 @@ def main():
tag_groups = []
tag_dicts = {}
for k, v in data.items():
if k == 'benchpark-tags':
if k == "benchpark-tags":
construct_tag_groups(tag_groups, tag_dicts, v)
else:
print("ERROR in top level construct_tag_groups")

df_list = []

print("Tags in benchpark_tags:")
for k, v in tag_dicts.items():
print(k + ": " + str(v))
print("\n")
benchmarks_dict = {}
for i in benchmarks:
benchmarks_dict[i] = [""] * len(v)

d = {"": v}
x = {**d, **benchmarks_dict}
tmp_df = pd.DataFrame(x)
df_list.append(tmp_df)
print(tmp_df)

#print("\n")


#################
Expand Down

0 comments on commit 29e033e

Please sign in to comment.