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

addressed requests #14

Merged
merged 7 commits into from
Aug 2, 2024
Merged

Conversation

nathanjzhao
Copy link
Contributor

No description provided.

Copy link
Member

@codekansas codekansas left a 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}")
Copy link
Member

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}")
Copy link
Member

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}")
Copy link
Member

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}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sir

Copy link
Contributor Author

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

Copy link
Contributor Author

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice :)

environment.py Outdated
Comment on lines 26 to 28
: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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use google style comments

Suggested change
: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

environment.py Show resolved Hide resolved
@codekansas codekansas merged commit 69ea288 into master Aug 2, 2024
1 check passed
@codekansas codekansas deleted the requests/environment-import-and-equinox branch August 2, 2024 21:43
@nathanjzhao nathanjzhao restored the requests/environment-import-and-equinox branch August 2, 2024 21:44
@nathanjzhao nathanjzhao deleted the requests/environment-import-and-equinox branch August 7, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants