mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-07 00:11:46 +00:00
Expose entry_point on EnvSpec
This commit is contained in:
committed by
Christopher Hesse
parent
cc6ff414ae
commit
dc91f434f8
@@ -66,7 +66,7 @@ def update_rollout_dict(spec, rollout_dict):
|
||||
return True
|
||||
|
||||
def add_new_rollouts(spec_ids, overwrite):
|
||||
environments = [spec for spec in envs.registry.all() if spec._entry_point is not None]
|
||||
environments = [spec for spec in envs.registry.all() if spec.entry_point is not None]
|
||||
if spec_ids:
|
||||
environments = [spec for spec in environments if spec.id in spec_ids]
|
||||
assert len(environments) == len(spec_ids), "Some specs not found"
|
||||
|
Reference in New Issue
Block a user