harshraj22's picture
download
raw
618 Bytes
"""Tests for the OpenEnv State interface."""
from cropRL.models import CroprlAction
from cropRL.server.cropRL_environment import CroprlEnvironment
class TestState:
def test_state_step_count(self, env):
assert env.state.step_count == 0
env.step(CroprlAction(action_id=0))
assert env.state.step_count == 1
def test_state_episode_id(self, env):
assert env.state.episode_id is not None
assert len(env.state.episode_id) > 0
def test_state_task_id(self):
e = CroprlEnvironment(task_id="hard")
e.reset(seed=42)
assert e.state.task_id == "hard"

Xet Storage Details

Size:
618 Bytes
·
Xet hash:
4723872e48d3a982e328a57dcf5b58dee42e106074c3b3c80bc5fae156e2763a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.