缩短 Studio 叠字与重复说明,色标只保留量程

去掉 depth_empty 与无用选区峰值文案,并修正「视图 → 分析视频」。已用 locale 单测与 depth_scale_text 核对;含证据录制的 wiring 用例本机跳过。
This commit is contained in:
ykcheungab
2026-10-08 15:41:30 +08:00
parent 48624dec99
commit f2bbab76a6
5 changed files with 56 additions and 69 deletions
+6 -6
View File
@@ -345,9 +345,9 @@ def test_the_operator_sees_the_cached_views_over_the_recording(
# The depth view is the stored map, drawn through the window's own backend. This
# result's map is exactly zero on every frame it holds — the box chain's depth is
# flat on this footage, which the panel has its own sentence for — and it is still a
# stored array of the result's own shape, so the pixels are checked against it rather
# than against a flat placeholder.
# flat on this footage — and it is still a stored array of the result's own shape,
# so the pixels are checked against it rather than against a flat placeholder.
# The colour-scale caption names the range only.
_set_mode(window, DEPTH)
target = active_frame
assert target.depth is not None and target.depth_nonzero == 0
@@ -365,9 +365,9 @@ def test_the_operator_sees_the_cached_views_over_the_recording(
"the depth view's pixels are not depth_map_to_bgr of the stored frame"
)
assert not np.array_equal(shown, arrows_bgr), "the depth view drew the arrow view"
assert t("panels.depth_empty", pixels=int(target.depth.size)) in (
window.arrow_panel.depth_scale_label.text()
), "an exactly-zero depth map is not stated as such"
assert window.arrow_panel.depth_scale_label.text() == (
window.frame_view.depth_scale_text(target)
), "the depth caption is not the colour-scale range"
# …and the recording's own picture is still reachable, at the same cursor.
_set_mode(window, RECORDED)