@@ -23,24 +23,25 @@ def ban(envs: list):
2323 'Defender' : 'Defender (%s) seems to load for an extremely long time. Skipping for now. Determine cause.' ,
2424 'Fetch' : 'Fetch (%s) envs are not ready yet.' ,
2525 'InvertedPendulumMuJoCoEnv' : 'Mujoco Inverted Pendulum (%s) has a bug.' ,
26- 'HopperMuJoCoEnv' : 'Does not pass azure pipeline tests' ,
27- 'InvertedDoublePendulumMuJoCoEnv' : 'Does not pass azure pipeline tests' ,
28- 'HalfCheetahMuJoCoEnv' : 'Does not pass azure pipeline tests' ,
29- 'HumanoidMuJoCoEnv' : 'Does not pass azure pipeline tests' ,
30- 'Walker2DMuJoCoEnv' : 'Does not pass azure pipeline tests' ,
31- 'AntMuJoCoEnv' : 'Does not pass azure pipeline tests' ,
26+ 'HopperMuJoCoEnv' : '(%s) Does not pass azure pipeline tests' ,
27+ 'InvertedDoublePendulumMuJoCoEnv' : '(%s) Does not pass azure pipeline tests' ,
28+ 'HalfCheetahMuJoCoEnv' : '(%s) Does not pass azure pipeline tests' ,
29+ 'HumanoidMuJoCoEnv' : '(%s) Does not pass azure pipeline tests' ,
30+ 'Walker2DMuJoCoEnv' : '(%s) Does not pass azure pipeline tests' ,
31+ 'AntMuJoCoEnv' : '(%s) Does not pass azure pipeline tests' ,
3232 'AtlasPyBulletEnv' : 'AtlasPyBulletEnv (%s) seems to load very slowly. Skipping for now.' ,
33- 'MazeEnv' : 'Having a maze view issue.' ,
33+ 'MazeEnv' : '(%s) Having a maze view issue.' ,
3434 }
3535 envs = np .array (envs )[list (map (partial (Envs ._error_out , ban_list = banned_envs ), envs ))]
3636
3737 return envs
3838
3939 @staticmethod
4040 def get_all_envs (key = None , exclude_key = None ):
41- return Envs .ban ([env .id for env in gym .envs .registry .all ()
42- if (key is None or env .id .lower ().__contains__ (key )) and \
43- (exclude_key is None or not env .id .lower ().__contains__ (exclude_key ))])
41+ filter_env_names = [env .id for env in gym .envs .registry .all ()
42+ if (key is None or env .id .lower ().__contains__ (key )) and \
43+ (exclude_key is None or not env .id .lower ().__contains__ (exclude_key ))]
44+ return Envs .ban (filter_env_names )
4445
4546 @staticmethod
4647 def get_all_latest_envs (key = None , exclude_key = None ):
0 commit comments