Repository navigation
Keep constant extrapolation gradients finite - #9243
sylvesterkaczmarek wants to merge 2 commits into
Conversation
Fixes isaac-sim#9242. Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Style consistency (1), Test quality (1). Other reviewed categories look good.
- PR description: The title and body match the four-file gradient fix, distinct regression cases, changelog, and contributor entry; reported validation and omitted checks are explicit, with no measurable performance claim requiring evidence.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: The test-module docstring only repeats the filename and regression purpose; delete it to remove redundant prose.
- Test quality: The two regressions protect distinct multi-sample and single-sample behavior, but missing kitless marker text excludes the file from kitless CI selection; add pytest.mark.kitless alongside pytest.mark.unit.
Minor fixes needed. Posted 2 inline findings.
Automated review; human maintainers own approval decisions.
| # | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| """Regression coverage for piecewise linear interpolation.""" |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Remove the redundant module docstring
The docstring restates the filename and test purpose without documenting a contract or constraint. Delete it.
|
|
||
| from isaaclab.utils.interpolation import LinearInterpolation | ||
|
|
||
| pytestmark = pytest.mark.unit |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Mark the tests kitless
Both tests run without Isaac Sim, but kitless CI selects files by marker text and will miss this file. Add pytest.mark.kitless alongside pytest.mark.unit.
[Low impact] The PR appears safe to merge. SummaryUpdates
No actionable issues found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "Keep constant extrapolation gradients fi..." · Reviewed by Greptile |
|
Removed the redundant module docstring and added the kitless marker alongside unit in feaf934, so both interpolation regressions are selected by simulator-free CI. Python syntax and diff checks passed; runtime tests were not rerun locally. |
Description
Mask coincident-bound intervals before dividing to prevent NaN gradients during constant extrapolation. Preserve existing forward values and slopes within sampled intervals.
Fixes #9242.
Type of change
Validation
Checklist