Skip to content

Commit

Permalink
supporting setting _N_GOALS
Browse files Browse the repository at this point in the history
  • Loading branch information
reginald-mclean committed Nov 26, 2024
1 parent 2610866 commit cc018e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metaworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,10 @@ def _mt_bench_vector_entry_point(
*args,
**lamb_kwargs,
):
if 'num_goals' in lamb_kwargs:
global _N_GOALS
_N_GOALS = lamb_kwargs['num_goals']
del lamb_kwargs['num_goals']
return make_mt_envs( # type: ignore
mt_bench,
seed=seed,
Expand Down

0 comments on commit cc018e1

Please sign in to comment.