소스 검색

fixed simulator type label

Snej69420 4 달 전
부모
커밋
d63e40319b
1개의 변경된 파일과 1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      benchmarks/compare.py

+ 1 - 4
benchmarks/compare.py

@@ -43,10 +43,7 @@ def get_style_config(user_input):
 
 def get_sim_shorthand(sim_id):
     sim_id_lower = str(sim_id).lower()
-    for key, shorthand in SIMULATOR_MAPPING.items():
-        if key.lower() in sim_id_lower:
-            return shorthand
-    return f"({sim_id})"
+    return SIMULATOR_MAPPING.get(sim_id_lower, f"({sim_id})")
 
 def clean_data(df):
     df["total_time"] = (