-
Notifications
You must be signed in to change notification settings - Fork 278
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
Type hints, docstrings & refactor #475
Conversation
Regarding the changes to the XML model files, I would like to see verification using the check_environments_match() function, for multiple |
All right, perhaps I need to clarify my XML changes. The main change I'm referring to is fixing a There are two more XML changes which are adding a missing However, just to make sure, I also just made a quick verification script in a new branch on my fork of Metaworld here. I basically just added some new envs without my fixes to either |
one issue with the type-hinting is that during the build tests, the python 3.8 build fails with message: |
I would like the |
@Kallinteris-Andreas Why split them? The tests pass as expected. The only difference is now things will be calculated correctly for the affected environment reward functions. |
In general it is best practice to have pull requests contain one type of change. |
I totally understand that but:
Sure, 1. could lead to a reproducibility issue because maybe an invalid value is treated as As for 2., those changes are absolutely relevant to this PR. I found that bug through static type analysis. If I revert the XML changes to remove those name properties, the tests now fail, because the envs are actually looking for objects with that name. So then I would have to also reintroduce the bug ( |
@evangelos-ch at least validate the XML file changes for all supported |
@Kallinteris-Andreas Mujoco 2.2.0-2.2.2 throw errors unrelated to this PR, we will test for 2.3.0->2.3.7 |
As requested, I added a higher-level script in my xml-changes-verification branch that runs the checking script for all MuJoCo versions between 2.2.0 and 2.3.7. The script passes for all 2.3.X versions with info comparison disabled. With info comparison enabled, it expectedly fails at 5000 steps because The test fails for 2.2.0 / 2.2.1 / 2.2.2, but not even at the env comparison step. It seems as though Metaworld isn't compatible with those MuJoCo versions, which lines up with my own understanding and experience maintaining the benchmark. When we first worked to migrate off Also for reference, these are the scripts used for verification:
I'm uploading logs from both runs (with info comparison and without). |
LGTM with regards to the XML file changes. |
assert_task_is_set
decorator to be closed inSawyerXYZEnv
to avoid a cyclical importTested on Python 3.10.14