Skip to content

Commit e62f9b6

Browse files
authored
Merge pull request #47 from jjshoots/fix_observation_space
Fix observation space for flatten waypoint wrapper
2 parents b985131 + eae859e commit e62f9b6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PyFlyt/gym_envs/utils/flatten_waypoint_env.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def __init__(self, env: Env, context_length=2):
3232
0
3333
] # type: ignore [reportGeneralTypeIssues]
3434
self.observation_space = Box(
35-
low=-np.inf, high=np.inf, shape=(self.attitude_shape + self.target_shape,)
35+
low=-np.inf,
36+
high=np.inf,
37+
shape=(self.attitude_shape + self.target_shape * self.context_length,),
3638
)
3739

3840
def observation(self, observation) -> np.ndarray:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "PyFlyt"
7-
version = "0.22.0"
7+
version = "0.22.1"
88
authors = [
99
{ name="Jet", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)