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 nroll argument from rollout #2246

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

aftersomemath
Copy link
Contributor

nroll can always be implied from the other arguments of rollout.

I grepped the codebase and did not find any cases where nroll was being passed to rollout other than its threading test.

Copy link
Collaborator

@yuvaltassa yuvaltassa left a comment

Choose a reason for hiding this comment

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

Looks good, some comments inline

@@ -56,20 +56,24 @@ MJX
11. Added support for ``eq_active``. Fixes :github:issue:`2173`.
12. Added ray intersection with ellipsoid.

Python bindings
^^^^^^^^^^^^^^^
13. Removed ``nroll`` argument from rollout because its value can always be implied
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the wrong section? Should be at the top of the file "Upcoming version (not yet released)"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, my apologies.

@@ -18,6 +18,7 @@ MJX
Python bindings
^^^^^^^^^^^^^^^
- Provide prebuilt wheels for Python 3.13.
- Removed ``nroll`` argument from rollout because its value can always be implied
Copy link
Collaborator

Choose a reason for hiding this comment

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

from rollout -> from :ref:rollout<PyRollout>

(apologies for the markdown, please look at the source of this comment)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm asking to convert the word "rollout" to an RST link

Copy link
Collaborator

Choose a reason for hiding this comment

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

Like here

12. Improved the implementation of the :ref:`rollout<PyRollout>` module. Note the changes below are breaking, dependent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, got it!

@aftersomemath
Copy link
Contributor Author

One test was added for each argument that can be used to infer nroll.

@@ -18,6 +18,7 @@ MJX
Python bindings
^^^^^^^^^^^^^^^
- Provide prebuilt wheels for Python 3.13.
- Removed ``nroll`` argument from :ref:`rollout<PyRollout>` because its value can always be implied
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. implied -> inferred
  2. Add full stop

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@yuvaltassa
Copy link
Collaborator

Please sync to latest

nroll can always be implied from the other arguments of rollout.

Add tests for nroll inference.
@aftersomemath
Copy link
Contributor Author

Squashed and rebased

@copybara-service copybara-service bot merged commit 6e129a5 into google-deepmind:main Nov 26, 2024
13 of 14 checks passed
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