MCPcopy Create free account
hub / github.com/ALRhub/X_IL / __init__

Method __init__

simulation/base_sim.py:12–28  ·  view source on GitHub ↗
(
            self,
            seed: int,
            device: str,
            render: bool = True,
            n_cores: int = 1,
            if_vision: bool = False
    )

Source from the content-addressed store, hash-verified

10class BaseSim(abc.ABC):
11
12 def __init__(
13 self,
14 seed: int,
15 device: str,
16 render: bool = True,
17 n_cores: int = 1,
18 if_vision: bool = False
19 ):
20 self.seed = seed
21 self.device = device
22 self.render = render
23 self.n_cores = n_cores
24
25 self.if_vision = if_vision
26
27 self.working_dir = os.getcwd()
28 self.env_name = 'BaseEnvironment'
29
30 @abc.abstractmethod
31 def test_agent(self, agent: BaseAgent, cpu_set):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected