88from  sumo .constants  import  REGULAR 
99
1010parser  =  argparse .ArgumentParser (description = 'Demo run arguments' )
11- parser .add_argument ('--dir' , default = '/Users/bfreydt/MIT_local/IntersectionZoo/ wd/new_exp' , type = str , help = 'Result directory' )
12- parser .add_argument ('--intersection_dir' , default = '/Users/bfreydt/MIT_local/IntersectionZoo/ dataset/salt-lake-city' , type = str , help = 'Path to intersection dataset' )
11+ parser .add_argument ('--dir' , default = 'wd/new_exp' , type = str , help = 'Result directory' )
12+ parser .add_argument ('--intersection_dir' , default = 'dataset/salt-lake-city' , type = str , help = 'Path to intersection dataset' )
1313parser .add_argument ('--penetration' , default = 0.33 , type = str , help = 'Eco drive adoption rate' )
1414parser .add_argument ('--temperature_humidity' , default = '68_46' , type = str , help = 'Temperature and humidity for evaluations' )
1515
1616args  =  parser .parse_args ()
1717print (args )
1818
19+ Path (args .dir ).mkdir (parents = True , exist_ok = True )
20+ 
1921tasks  =  PathTaskContext (
2022    dir = Path (args .intersection_dir ),                    
2123    single_approach = True ,
2931    working_dir = Path (args .dir ),
3032    moves_emissions_models = [args .temperature_humidity ],
3133    fleet_reward_ratio = 1 ,
34+     visualize_sumo = True ,
3235)
3336
3437# Create the environment 
@@ -64,7 +67,6 @@ def filter_rew(rew: dict):
6467    # Print the observations and reward 
6568    print ("Observations:" , filter_obs (obs ))
6669    print ("Reward:" , filter_rew (reward ))
67-     input ("Press Enter to continue..." )
6870
6971# Close the environment 
7072env .close ()
0 commit comments