Skip to content

Commit

Permalink
Remove invalid chars from model name
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksKnezevic committed Feb 3, 2025
1 parent 158534f commit cd23e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions results/parse_op_by_op_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def process_json_files():
.split(" ")[0]
.split("test")[-1]
)
# If invalid excel char in name: []:*?/\, replace with _
model_name = re.sub(r"[^a-zA-Z0-9_]", "_", model_name)
if len(model_name) > 28:
model_name = model_name[:28]

Expand Down

0 comments on commit cd23e6d

Please sign in to comment.