Repository navigation
Rename config helpers to describe what they build - #1474
Conversation
Signed-off-by: Clemens Volk <[email protected]>
Signed-off-by: Clemens Volk <[email protected]>
Signed-off-by: Clemens Volk <[email protected]>
[Low impact] The PR appears safe to merge with the explicitly intended public API renames. SummaryRenames six configuration functions and updates their callers, tests, examples, and documentation.
Reviews (1) · Last reviewed commit: "Shorten environment builder docstring" · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryRenames Findings🔵 Improvement: VerdictShip it |
Signed-off-by: Clemens Volk <[email protected]>
Co-authored-by: arena-review-bot[bot] <290456231+arena-review-bot[bot]@users.noreply.github.com>
Co-authored-by: arena-review-bot[bot] <290456231+arena-review-bot[bot]@users.noreply.github.com>
qianl-nv
left a comment
There was a problem hiding this comment.
LGTM thanks for the clean up!
Brings in these PRs from main: - #1474 Rename config helpers to describe what they build - #1385 Abort Newton runs on physics buffer overflow - #1478 Switch agent CI tests to nightly cadence - #1449 Keep evaluation recorder outputs run-scoped Signed-off-by: Clemens Volk <[email protected]>
#1474 renamed ArenaEnvBuilder.compose_manager_cfg() to build_env_cfg() on main. Update the three calls and the module docstring in test_asset_selection_variation.py after merging main. Signed-off-by: Clemens Volk <[email protected]>
Call `ArenaEnvBuilder.build_env_cfg()` in `test_build_time_variation_seeding.py`, so its three tests run on main again. ## Why this change? [#1474](#1474) renamed `ArenaEnvBuilder.compose_manager_cfg()` to `build_env_cfg()`. [#1467](#1467) added `test_build_time_variation_seeding.py`, which still calls `compose_manager_cfg()`, and the two merged within hours of each other. On main, all three tests in the file fail with `AttributeError`. ## What changes? The test helper `get_build_time_values()` calls `build_env_cfg()`. No other code on main uses the old name. ## Validation - `pre-commit` passes on the changed file. - `test_build_time_variation_seeding.py`: 3 passed on this branch. Signed-off-by: Clemens Volk <[email protected]>
…#1485) Rename five helpers to describe their conversions or purpose, replace vague “plumbing” docstrings, and add naming guidance to `AGENTS.md`. Follow up on [#1474](#1474), which clarified config-builder names. `_normalize_relation_params()` becomes `_convert_relation_pose_params_to_float_tuples()`: it converts pose fields to float tuples, without normalizing quaternion length. “Normalized” is valid in `set_normalized_object_pose()`—its input uses `[0, 1]` and its helper normalizes vectors and quaternions—but `set_object_uprightness()` describes its purpose more precisely. ## API changes Two public renames have no compatibility aliases. Update imports and calls: ```python # Before normalize_run_status(status) set_normalized_object_pose(env, asset_cfg, upright_percentage=0.5) # After run_status_to_lowercase_string(status) set_object_uprightness(env, asset_cfg, upright_percentage=0.5) ``` Private helpers now name their output: float tuples, an ID list, or an ID tensor on the environment’s device. The shared guidance preserves established technical terminology and links to the coordinate-frame naming convention. ## Validation Pre-commit and whitespace checks passed. All 11 changed Python files match their original syntax trees after accounting for renames and docstrings. No old helper names or “plumbing” references remain outside submodules. Runtime tests were not run: this worktree has no running Arena container. --------- Signed-off-by: Clemens Volk <[email protected]>
The merge of main brought in #1474, which renamed ArenaEnvBuilder.compose_manager_cfg() to build_env_cfg(), but not the test fix from #1486. The three tests in test_build_time_variation_seeding.py failed with AttributeError. The file now matches main. Signed-off-by: Clemens Volk <[email protected]>
Rename six configuration functions to describe building environment settings, building configuration types, and applying variation overrides. Update callers, tests, examples, and documentation to use the new names.
Why this change?
ArenaEnvBuilder.compose_manager_cfg()builds the entire environment configuration and constructor arguments. Its name does not make that scope clear. The variation helpers also need to distinguish creating a dataclass type from building configuration values with overrides and applying them to variation objects.What changes?
compose_manager_cfg()tobuild_env_cfg()._compose_variations_event_cfg(),_compose_metrics_cfg(), and_compose_episode_recorders_cfg()to_build_variation_events_cfg(),_build_metrics_cfg(), and_build_episode_recorders_cfg()._compose_variation_cfgs()to_build_variations_cfg_type()andcompose_variations_cfg_and_apply_overrides()tobuild_variations_cfg_with_overrides().build_env_cfg()applies variations and prepares placement. Clarify thatbuild_variations_cfg_with_overrides()returns values without updating the variation objects.These are API renames without compatibility aliases. External callers must update the two public function names. Hydra, USD, and pose-composition terminology remains in place.
Usage example
Before:
After:
Validation
pre-commit run --all-files: passed.git diff --check: passed.