|  |  | @ -1,8 +1,10 @@ | 
			
		
	
		
			
				
					|  |  |  | #!/usr/bin/python3 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | abs_path = "TODO" | 
			
		
	
		
			
				
					|  |  |  | import os | 
			
		
	
		
			
				
					|  |  |  | import subprocess | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | abs_path = os.getcwd() | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | slippery_configs=[f"{abs_path}/slippery_prob_075.yaml",  | 
			
		
	
		
			
				
					|  |  |  |                   f"{abs_path}/slippery_prob_08.yaml", | 
			
		
	
		
			
				
					|  |  |  |                   f"{abs_path}/slippery_prob_085.yaml", | 
			
		
	
	
		
			
				
					|  |  | @ -39,12 +41,12 @@ for shield_value in shield_values: | 
			
		
	
		
			
				
					|  |  |  |   for sh_comp in comparison_type: | 
			
		
	
		
			
				
					|  |  |  |     for probs, config in prob_confs: | 
			
		
	
		
			
				
					|  |  |  |       command = f"echo \"Running experiment with sh:{sh}, sh_value:{probs[2]}, sh_comp:{sh_comp}, probvalues:{probs}, config{config}\""     | 
			
		
	
		
			
				
					|  |  |  |       execute_command = f'./syncscript_local.sh {NUM_TIMESTEPS} {LOGDIR} {"70"} {ENV} full {sh_comp} {config} {probs[0]} {probs[1]} {probs[2]} {shield_value}' | 
			
		
	
		
			
				
					|  |  |  |       execute_command = f'./syncscript.sh {NUM_TIMESTEPS} {LOGDIR} {"70"} {ENV} full {sh_comp} {config} {probs[0]} {probs[1]} {probs[2]} {shield_value}' | 
			
		
	
		
			
				
					|  |  |  |       subprocess.call(execute_command, shell=True)#.decode("utf-8").split('\n') | 
			
		
	
		
			
				
					|  |  |  |    | 
			
		
	
		
			
				
					|  |  |  | # loop for unshielded runs | 
			
		
	
		
			
				
					|  |  |  | for probs, config in prob_confs: | 
			
		
	
		
			
				
					|  |  |  |   command = f"echo \"Running experiment with sh:{sh}, sh_value:{probs[2]}, sh_comp:{sh_comp}, probvalues:{probs}, config{config}\""     | 
			
		
	
		
			
				
					|  |  |  |   execute_command = f'./syncscript_local.sh {NUM_TIMESTEPS} {LOGDIR} {"70"} {ENV} none {sh_comp} {config} {probs[0]} {probs[1]} {probs[2]} {shield_value}' | 
			
		
	
		
			
				
					|  |  |  |   execute_command = f'./syncscript.sh {NUM_TIMESTEPS} {LOGDIR} {"70"} {ENV} none {sh_comp} {config} {probs[0]} {probs[1]} {probs[2]} {shield_value}' | 
			
		
	
		
			
				
					|  |  |  |   subprocess.call(execute_command, shell=True)#.decode("utf-8").split('\n') | 
			
		
	
		
			
				
					|  |  |  |    |