ReproAgent / obs_debug.py
Yusufarsh's picture
Upload 20 files
331f4b7 verified
from reproagent.environment import ReproAgentEnv
env = ReproAgentEnv(difficulty='easy', max_steps=10, use_llm=False)
obs, info = env.reset()
print("Checking space bounds:")
for k, space in env.observation_space.spaces.items():
o = obs[k]
contains = space.contains(o)
print(f"{k}: Contains = {contains}")
if not contains:
print(f" Min value: {o.min()}, Max value: {o.max()}")
print(f" Space low: {space.low[0]}, Space high: {space.high[0]}")
print(f" Is type correct?: {type(o)} == {space.dtype}")
print(f" Shape correct?: {o.shape} == {space.shape}")