Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
simon1hofmann committed Nov 9, 2023
1 parent 77e282e commit 4220b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mnt/benchviewer/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,6 @@ def parse_data(filename: str) -> ParsedBenchmarkName:
Return values:
parsed_data -- parsed data extracted from filename
"""
if "/" in filename:
filename = filename.split("/")[1]
if filename.endswith(".fgl"):
benchmark = "_".join([file.lower() for file in filename.split("_")[0:-2]])
library = filename.split("_")[-2].lower()
Expand Down Expand Up @@ -555,7 +553,7 @@ def create_database(zip_file: ZipFile) -> pd.DataFrame:
rows_list = []

for filename in zip_file.namelist():
if (filename.endswith((".fgl", ".v"))) and "__MACOSX" not in filename:
if filename.endswith((".fgl", ".v")):
parsed_data = parse_data(filename)
rows_list.append(parsed_data)

Expand Down Expand Up @@ -593,7 +591,7 @@ def handle_github_api_request(repo_url: str) -> requests.Response:
if "GITHUB_TOKEN" in os.environ:
headers = {"Authorization": f"token {os.environ['GITHUB_TOKEN']}"}

response = requests.get(f"https://api.github.com/repos/simon1hofmann/mntbench/{repo_url}", headers=headers)
response = requests.get(f"https://api.github.com/repos/cda-tum/mnt-bench/{repo_url}", headers=headers)
success_code = 200
if response.status_code == success_code:
return response
Expand Down
Binary file modified src/mnt/benchviewer/static/files/MNTBench_all.zip
Binary file not shown.

0 comments on commit 4220b8a

Please sign in to comment.