-
Notifications
You must be signed in to change notification settings - Fork 1
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
addressed requests #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you were so close to a perfect pr
environment.py
Outdated
goal_path = Path(local_path) | ||
|
||
if not (goal_path / repo_dir).exists(): | ||
print(f"Cloning repository from {repo_url}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sir
environment.py
Outdated
) | ||
os.chdir(goal_path) | ||
subprocess.run(["git", "sparse-checkout", "set", repo_dir], check=True) | ||
print(f"Model files downloaded to {goal_path / repo_dir}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sir
environment.py
Outdated
subprocess.run(["git", "sparse-checkout", "set", repo_dir], check=True) | ||
print(f"Model files downloaded to {goal_path / repo_dir}") | ||
else: | ||
print(f"Updating model files in {goal_path / repo_dir}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sir
environment.py
Outdated
os.chdir(goal_path) | ||
subprocess.run(["git", "pull"], check=True) | ||
|
||
print(f"Model files are up to date at {goal_path / repo_dir}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL i changed it woops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just didnt ocmmit
path: str = os.path.join(os.path.dirname(__file__), "environments", "stompy", "legs.xml") | ||
mj_model: mujoco.MjModel = mujoco.MjModel.from_xml_path(path) | ||
# GitHub repository URL | ||
repo_url = "https://github.com/nathanjzhao/mujoco-models.git" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice :)
environment.py
Outdated
:param repo_url: URL of the GitHub repository | ||
:param repo_dir: Directory within the repository containing the model files | ||
:param local_path: Local path where files should be saved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:param repo_url: URL of the GitHub repository | |
:param repo_dir: Directory within the repository containing the model files | |
:param local_path: Local path where files should be saved | |
Args: | |
repo_url: URL of the GitHub repository | |
repo_dir: Directory within the repository containing the model files | |
local_path: Local path where files should be saved |
No description provided.