Skip to content

Commit 8e5cab8

Browse files
committed
Log pause pixel count; tighten tiled threshold scope
1 parent 8b2a11f commit 8e5cab8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

source/isaaclab_visualizers/test/visualizer_integration_utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,13 @@ def _assert_frames_remain_stable(
580580
) -> None:
581581
"""Assert two viewport frames are effectively unchanged while simulation is paused."""
582582
n_diff = _count_significantly_differing_pixels(frame_a, frame_b, channel_diff_threshold=channel_diff_threshold)
583+
logging.getLogger(__name__).info(
584+
"%s pause stability: %d px differed at threshold %g (gate %d)",
585+
case_label,
586+
n_diff,
587+
channel_diff_threshold,
588+
max_differing_pixels,
589+
)
583590
assert n_diff <= max_differing_pixels, (
584591
f"{case_label} failed to pause during {phase}: {n_diff} pixels differed, expected at most "
585592
f"{max_differing_pixels} with per-channel threshold {channel_diff_threshold} in 0-255 space. "
@@ -1434,6 +1441,8 @@ def _attempt_pause():
14341441
debug_phase="pausing_tiled",
14351442
channel_diff_threshold=(
14361443
_KIT_PAUSED_TILED_CAMERA_CHANNEL_DIFF_THRESHOLD
1444+
if isinstance(visualizer, KitVisualizer) and physics_kind == "newton"
1445+
else _KIT_PAUSED_VIEWPORT_CHANNEL_DIFF_THRESHOLD
14371446
if isinstance(visualizer, KitVisualizer)
14381447
else _FRAME_MOTION_CHANNEL_DIFF_THRESHOLD
14391448
),

0 commit comments

Comments
 (0)