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 Envs & Refactor #499

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
  •  
  •  
  •  
Next Next commit
refactored project and removed v1 files/references/envs
  • Loading branch information
reginald-mclean committed May 2, 2024
commit f1a106bf3e43f2c24617b92f5d6f9ea9bf34298e
9 changes: 7 additions & 2 deletions metaworld/__init__.py
Original file line number Diff line number Diff line change
@@ -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):
@@ -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
@@ -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:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
Loading