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

Fixes setting the seed from CLI for RSL-RL #1084

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

kaixi287
Copy link
Contributor

@kaixi287 kaixi287 commented Oct 1, 2024

Description

This pull request fixes a bug that prevented setting the seed from CLI arguments. The issue was caused by an extra pair of quotation marks in the hasattr check for args_cli. Removing these allows the seed to be correctly set via CLI.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

Before: The seed could not be set via CLI due to an extra pair of quotation marks around args_cli in the hasattr check.
After: The seed can now be correctly set from CLI.

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@Mayankm96 Mayankm96 changed the title Fixes setting the seed from CLI Fixes setting the seed from CLI for RSL-RL Oct 1, 2024
@Mayankm96
Copy link
Contributor

Thank you for the fix!

@Mayankm96 Mayankm96 merged commit 7b4dde8 into isaac-sim:main Oct 1, 2024
2 checks passed
iamdrfly pushed a commit to iamdrfly/IsaacLab that referenced this pull request Nov 21, 2024
# Description

This pull request fixes a bug that prevented setting the seed from CLI
arguments. The issue was caused by an extra pair of quotation marks in
the `hasattr` check for `args_cli`. Removing these allows the seed to be
correctly set via CLI.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
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