Skip to content

Commit 1e6bb81

Browse files
Alekh MekaAlekh Meka
authored andcommitted
Completed RQ4 - updated dataframe for csv, added tex document generation
1 parent c0c2e08 commit 1e6bb81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

artifacts/experiments/RQ4/generateResults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def evaluate_directories(project_name: str, results_directory: str, directories:
3939
def retrieve_time_elapsed(directory_path: str, valid_htmls: list[str]) -> dict[str, str]:
4040
times_elapsed_dict = {}
4141
for html_file in valid_htmls:
42-
property_name = "Property - " + html_file.replace(".html", "")
42+
property_name = "Property - " + html_file.replace(".html", "").replace("#", "")
4343
file_path = directory_path + html_file
4444
with open(file_path) as f:
4545
contents = f.read()
@@ -50,7 +50,7 @@ def retrieve_time_elapsed(directory_path: str, valid_htmls: list[str]) -> dict[s
5050
return times_elapsed_dict
5151

5252
def generate_report(project_name: str, final_stats: dict[str, pd.Series], final_fixed_stats: dict[str, dict]):
53-
report_name = "artifacts/output/" + project_name + ".csv"
53+
report_name = "artifacts/output/rq4_" + project_name + ".csv"
5454
tex_file = report_name.replace(".csv", ".tex")
5555
final_stats.update(final_fixed_stats)
5656
df = pd.DataFrame(final_stats)

0 commit comments

Comments
 (0)