File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,4 @@ gitpython # for the reproducibility script
2121requests
2222matplotlib
2323ray [default ]
24+ python-slugify
Original file line number Diff line number Diff line change 11import gzip
22import logging
33import pickle
4+ import re
5+ import uuid
46from dataclasses import dataclass
57from datetime import datetime
68from pathlib import Path
7- import uuid
89
910import bgym
1011from bgym import Benchmark , EnvArgs , ExpArgs
12+ from slugify import slugify
1113
1214from agentlab .agents .agent_args import AgentArgs
1315from agentlab .analyze import inspect_results
1416from agentlab .experiments import args
1517from agentlab .experiments import reproducibility_util as repro
1618from agentlab .experiments .exp_utils import RESULTS_DIR , add_dependencies
17- from agentlab .experiments .launch_exp import find_incomplete , run_experiments , non_dummy_count
19+ from agentlab .experiments .launch_exp import (
20+ find_incomplete ,
21+ non_dummy_count ,
22+ run_experiments ,
23+ )
1824
1925logger = logging .getLogger (__name__ )
2026
@@ -220,6 +226,9 @@ def name(self):
220226 study_name = f"{ agent_names [0 ]} _on_{ self .benchmark .name } "
221227 else :
222228 study_name = f"{ len (agent_names )} _agents_on_{ self .benchmark .name } "
229+
230+ study_name = slugify (study_name , max_length = 100 , allow_unicode = True )
231+
223232 if self .suffix :
224233 study_name += f"_{ self .suffix } "
225234 return study_name
You can’t perform that action at this time.
0 commit comments