Skip to content

Commit 731ce45

Browse files
authored
Merge pull request #134 from trachana20/patch-1
Replace redundant 'gravity' with 'max_speed' context feature to pendulum env
2 parents 14c8fee + e0c89f4 commit 731ce45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

carl/envs/gymnasium/classic_control/carl_pendulum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class CARLPendulum(CARLGymnasiumEnv):
1515
@staticmethod
1616
def get_context_features() -> dict[str, ContextFeature]:
1717
return {
18-
"gravity": UniformFloatContextFeature(
19-
"gravity", lower=-np.inf, upper=np.inf, default_value=8.0
18+
"max_speed": UniformFloatContextFeature(
19+
"max_speed", lower=-np.inf, upper=np.inf, default_value=8.0
2020
),
2121
"dt": UniformFloatContextFeature(
2222
"dt", lower=0, upper=np.inf, default_value=0.05

0 commit comments

Comments
 (0)