Skip to content

Commit

Permalink
Fix the remaining linting issues and add the required libraries to re…
Browse files Browse the repository at this point in the history
…quirements.txt
  • Loading branch information
MohamedElgammal committed Aug 12, 2024
1 parent 476dc88 commit 1e0d5f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
prettytable
lxml
psutil

pandas
numpy
scipy
# Python linter and formatter
click==8.0.2 # Our version of black needs an older version of click (https://stackoverflow.com/questions/71673404/importerror-cannot-import-name-unicodefun-from-click)
black==21.4b0
pylint==2.7.4

# Surelog
orderedmultidict
orderedmultidict
8 changes: 4 additions & 4 deletions vtr_flow/scripts/tuning_runs/control_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def parse_results(input_path):
full_res_csv_path = os.path.join(largest_run_path, "full_res.csv")

if not os.path.exists(os.path.join(largest_run_path, "parse_results.txt")):
print(f"parse_results.txt not found.")
print("File parse_results.txt not found.")
sys.exit(1)

# Read the parse_results.txt file and write to full_res.csv
Expand Down Expand Up @@ -94,16 +94,16 @@ def parse_results(input_path):

# Generate avg_seed.csv if --seed column exists
generate_avg_seed_csv(full_res_csv_path, largest_run_path)
print(f"Generated average seed results")
print("Generated average seed results")

# Generate gmean_res.csv
generate_geomean_res_csv(
os.path.join(largest_run_path, "avg_seed.csv"), largest_run_path
)
print(f"Generated geometric average results over all the circuits")
print("Generated geometric average results over all the circuits")

generate_xlsx(largest_run_path)
print(f"Generated xlsx that merges all the result csv files")
print("Generated xlsx that merges all the result csv files")


def generate_xlsx(largest_run_path):
Expand Down

0 comments on commit 1e0d5f3

Please sign in to comment.