Repository navigation
Fix backend propagation in nested dictionary conversion - #7118
kellyguo11 merged 3 commits into
Conversation
Greptile SummaryThis PR fixes recursive dictionary conversion so nested values retain the caller-selected backend and source array types.
Confidence Score: 5/5The PR appears safe to merge, with no actionable defects identified in the changed behavior. The recursive call now preserves the same backend and source-type filter used at the parent level, and the regression test directly covers the previously broken nested conversion. Important Files Changed
Reviews (1): Last reviewed commit: "docs: note nested backend conversion fix" | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
The change correctly forwards backend and array_types during recursive dictionary conversion, aligning nested values with the caller’s requested conversion settings. The regression test and changelog fragment cover the corrected behavior.
- Design and architecture: The recursive path now uses the same conversion configuration as the top-level call without changing ownership, state, or control flow. Re-validating conversion settings at each nesting level is a minor existing tradeoff, not a merge concern.
- API: The public signature, defaults, return shape, and exports remain unchanged. The patch corrects nested behavior to match the existing parameter contract, so no deprecation or migration guidance is needed.
- Implementation: The changed recursive call directly fixes the demonstrated fallback to default settings. The test exercises nested NumPy-to-Torch conversion and would distinguish the fixed behavior from the prior implementation. Although the new test could potentially be consolidated into existing dictionary utility coverage, that is non-blocking.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
31e46dc to
1f1a282
Compare
Signed-off-by: Sylvester Kaczmarek <[email protected]>
1f1a282 to
79ae3fc
Compare
There was a problem hiding this comment.
Hi @sylvesterkaczmarek thanks a lot for taking the time to open all these PRs. Could you kindly take the time to look into the following:
"the new test lives in a standalone file (test_nested_backend_conversion.py) that duplicates the scope of the existing source/isaaclab/test/utils/test_dict.py, which already covers convert_dict_to_backend. Consider folding this as a test case into that existing file instead, for discoverability and to avoid splitting coverage for the same function across files."
LGTM otherwise!
Addresses maintainer feedback by keeping convert_dict_to_backend coverage in the existing test_dict.py module. Signed-off-by: Sylvester Kaczmarek <[email protected]>
Coverage now lives with the existing convert_dict_to_backend tests as requested by the maintainer. Signed-off-by: Sylvester Kaczmarek <[email protected]>
AntoineRichard
left a comment
There was a problem hiding this comment.
Thanks a lot for the changes (and all the PRs) LGTM! @kellyguo11 @StafaH can I get another approval?
…#7234) ## Summary Cherry-picks the following merged PRs from `develop` onto `release/3.0.0`, preserving each as an individual commit with `-x` provenance: - #7070 — Bump the Isaac Sim CI image to digest `e7cd73cd7a9a` - #7118 — Fix backend propagation in nested dictionary conversion The commits are applied in their `develop` history order. Both cherry-picks completed without conflicts. ## Validation - Verified both backported commits have patch IDs identical to their source squash commits and retain their `cherry picked from` footers. - `git diff --check upstream/release/3.0.0..HEAD` - `uv run --extra test --frozen python -m pytest source/isaaclab/test/utils/test_dict.py -q --disable-warnings` — **10 passed** - Parsed `.github/workflows/config.yaml` and verified the exact `e7cd73cd7a9a...` Isaac Sim digest. - Changelog validation against `release/3.0.0` passed. - `uv run isaaclab -f` passed all code, formatting, whitespace, YAML/TOML, license, and safety hooks. Its changelog hook reported pre-existing release-only fragments (`ant-direct-device-mask-reset.rst` and `omniverse-client-2-72-1-update.rst`) followed by the known Windows CP1252 reporting error; the targeted release-base changelog check passed. --------- Signed-off-by: Sylvester Kaczmarek <[email protected]> Co-authored-by: isaaclab-bot[bot] <282401363+isaaclab-bot[bot]@users.noreply.github.com> Co-authored-by: Sylvester Kaczmarek <[email protected]>
Description
convert_dict_to_backend()recursively processed nested dictionaries without forwardingbackendorarray_types. Nested values therefore silently reverted to the default NumPy backend.This forwards the caller's conversion settings through recursion, adds regression coverage, and includes a changelog fragment.
Type of change