Skip to content

Commit 96fefa1

Browse files
committed
cleaning
1 parent db7a429 commit 96fefa1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/latex_table.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,23 @@ def parse_input(data):
5050
# Match lines that start a new entry (e.g., "just_string : 1365.92 MB/s ...")
5151
match_entry = re.match(r"(\S+)\s*:\s*[\d.]+\s*MB/s", line)
5252
if match_entry:
53-
print(f"Found new entry: {match_entry.group(1)}") # Debugging output
5453
current_entry = {"name": match_entry.group(1)}
5554
parsed_data.append(current_entry)
5655
if not current_entry:
5756
continue
58-
print(f"reviewing line {line}") # Debugging output
59-
6057
# Match lines with ns/f
6158
match_ns = re.search(r"([\d.]+)\s*ns/f", line)
6259
if match_ns and current_entry:
63-
print(f"Found ns/f: {match_ns.group(1)}")
6460
current_entry["ns_per_float"] = float(match_ns.group(1))
6561

6662
# Match lines with instructions/float (i/f)
6763
match_inst_float = re.search(r"([\d.]+)\s*i/f", line)
6864
if match_inst_float and current_entry:
69-
print(f"Found i/f: {match_inst_float.group(1)}")
7065
current_entry["inst_per_float"] = float(match_inst_float.group(1))
7166

7267
# Match lines with instructions/cycle (i/c)
7368
match_inst_cycle = re.search(r"([\d.]+)\s*i/c", line)
7469
if match_inst_cycle and current_entry:
75-
print(f"Found i/c: {match_inst_cycle.group(1)}")
7670
current_entry["inst_per_cycle"] = float(match_inst_cycle.group(1))
7771

7872
# Filter out incomplete entries
@@ -118,6 +112,5 @@ def generate_latex_table(data):
118112
else:
119113
raw_input = sys.stdin.read()
120114
parsed_data = parse_input(raw_input)
121-
print(f"Parsed data: {parsed_data}") # Debugging output
122115
latex_output = generate_latex_table(parsed_data)
123116
print(latex_output)

0 commit comments

Comments
 (0)