Skip to content

Commit

Permalink
Fix ezpickle ant
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAlegre committed Mar 5, 2024
1 parent fae0954 commit 1450ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mo_gymnasium/envs/mujoco/ant.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MOAntEnv(AntEnv, EzPickle):

def __init__(self, cost_objective=True, **kwargs):
super().__init__(**kwargs)
EzPickle.__init__(self, **kwargs)
EzPickle.__init__(self, cost_objective, **kwargs)
self.cost_objetive = cost_objective
self.reward_dim = 3 if cost_objective else 2
self.reward_space = Box(low=-np.inf, high=np.inf, shape=(self.reward_dim,))
Expand Down

0 comments on commit 1450ee9

Please sign in to comment.