facebookresearch/habitat-lab

RLEnv seed function accepts seed as optional and default to None

edwardjjj opened this issue ยท 0 comments

Habitat-Lab and Habitat-Sim versions

Habitat-Lab: v0.3.0 (stable)

๐Ÿ› Bug

The RLEnv class implements seed method which allows empty input, but inside the method it calls the seed method of Env class which requires an input.

def seed(self, seed: Optional[int] = None) -> None:
        self._env.seed(seed)

Expected behavior

The seed method signature in RLEnv should match the seed method in Env.

def seed(self, seed: int) -> None:
        self._env.seed(seed)