harshraj22's picture
download
raw
534 Bytes
"""Shared fixtures for CropRL tests."""
import pytest
import numpy as np
from cropRL.config import EnvConfig
from cropRL.server.cropRL_environment import CroprlEnvironment
@pytest.fixture
def config():
"""Default environment config."""
return EnvConfig()
@pytest.fixture
def env():
"""Fresh environment, reset with seed 42."""
e = CroprlEnvironment()
e.reset(seed=42)
return e
@pytest.fixture
def rng():
"""Seeded numpy RNG for deterministic dynamics tests."""
return np.random.default_rng(42)

Xet Storage Details

Size:
534 Bytes
·
Xet hash:
e304b598821a6b707494227677d0582632b356092d09c568c3e8c91b91d709f2

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