Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove v1 refactor #478

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 7 additions & 2 deletions metaworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
import numpy as np
import numpy.typing as npt

import metaworld.envs.mujoco.env_dict as _env_dict
import metaworld.env_dict as _env_dict
from metaworld.types import Task
from .sawyer_xyz_env import SawyerXYZEnv
from metaworld.env_dict import (
ALL_V2_ENVIRONMENTS_GOAL_HIDDEN,
ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE,
)


class MetaWorldEnv(abc.ABC):
Expand Down Expand Up @@ -285,4 +290,4 @@ def __init__(self, seed=None):
)


__all__ = ["ML1", "MT1", "ML10", "MT10", "ML45", "MT50"]
__all__ = ["ML1", "MT1", "ML10", "MT10", "ML45", "MT50", "ALL_V2_ENVIRONMENTS_GOAL_HIDDEN", "ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE", "SawyerXYZEnv"]
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,7 @@

_CURRENT_FILE_DIR = Path(__file__).parent.absolute()

ENV_ASSET_DIR_V1 = _CURRENT_FILE_DIR / "assets_v1"
ENV_ASSET_DIR_V2 = _CURRENT_FILE_DIR / "assets_v2"


def full_v1_path_for(file_name: str) -> str:
"""Retrieves the full, absolute path for a given V1 asset

Args:
file_name: Name of the asset file. Can include subdirectories.

Returns:
The full path to the asset file.
"""
return str(ENV_ASSET_DIR_V1 / file_name)
ENV_ASSET_DIR_V2 = _CURRENT_FILE_DIR / "assets"


def full_v2_path_for(file_name: str) -> str:
Expand Down
Loading
Loading