google / brax

Massively parallel rigidbody physics simulation on accelerator hardware.
Apache License 2.0
2.14k stars 234 forks source link

Remove duplicate code in brax.envs by using get_environment #373

Open arxaqapi opened 1 year ago

arxaqapi commented 1 year ago

This is a small pull request simply removing code duplication by reusing the brax.envs.get_environment function.

I have also made some slight improvements to the documentation of the brax.envs.create function to make its difference with the already existing brax.envs.get_environment function clearer.

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.