删掉回放的五个转发、重复的空格快捷键与重复的等待循环。
回放调用点直接走 replay_ctl,场景工具的路径引导收敛到 _paths,panel_snapshot 复用 panel_check 的 _wait_for,report_from 收成模块私有的 _report_from。
This commit is contained in:
@@ -2084,9 +2084,9 @@ def main() -> int:
|
||||
app.processEvents()
|
||||
pane_window.brand_bar.btn_playback.click()
|
||||
app.processEvents()
|
||||
check(pane_window._load_recording(recording), "the replay could not open the recording")
|
||||
check(pane_window.replay_ctl.load_recording(recording), "the replay could not open the recording")
|
||||
app.processEvents()
|
||||
check(pane_window._replay_owns_image(), "the replay does not own the 2D pane")
|
||||
check(pane_window.replay_ctl.owns_image(), "the replay does not own the 2D pane")
|
||||
# The recording has no calibrated axis, so newton would be an empty chart.
|
||||
check(
|
||||
pane_window.force_plots.unit() == "raw",
|
||||
@@ -2139,7 +2139,7 @@ def main() -> int:
|
||||
pane_window.brand_bar.btn_live.click()
|
||||
app.processEvents()
|
||||
check(
|
||||
not pane_window._replay_owns_image(),
|
||||
not pane_window.replay_ctl.owns_image(),
|
||||
"the live view still hands the 2D pane to the replay",
|
||||
)
|
||||
pane_window._on_run_tick()
|
||||
@@ -3187,7 +3187,7 @@ def main() -> int:
|
||||
"the replay view still offers the camera picker",
|
||||
)
|
||||
check(
|
||||
replay_window._load_recording(recording),
|
||||
replay_window.replay_ctl.load_recording(recording),
|
||||
"the replay view could not open the recording",
|
||||
)
|
||||
app.processEvents()
|
||||
@@ -3238,7 +3238,7 @@ def main() -> int:
|
||||
_prompt_module.VideoAnalysisDialog.exec = _answer_prompt
|
||||
try:
|
||||
check(
|
||||
other_window._load_replay_video(bare_video) is True,
|
||||
other_window.replay_ctl.load_video(bare_video) is True,
|
||||
"a playable video with no recording beside it was refused",
|
||||
)
|
||||
app.processEvents()
|
||||
@@ -3652,7 +3652,7 @@ def main() -> int:
|
||||
# Leaving the replay view returns the charts to the live session and hides
|
||||
# the bar: the replay stays available, it just stops being on screen.
|
||||
check(
|
||||
replay_window._load_recording(recording),
|
||||
replay_window.replay_ctl.load_recording(recording),
|
||||
"the replay view could not be re-opened",
|
||||
)
|
||||
app.processEvents()
|
||||
|
||||
@@ -91,7 +91,7 @@ def _run_scene(window, app, scene: str):
|
||||
for _ in range(4):
|
||||
app.processEvents()
|
||||
recording = _replay_data(window, app)
|
||||
window._load_recording(recording)
|
||||
window.replay_ctl.load_recording(recording)
|
||||
# Park the playhead where the bar and the charts show a real position.
|
||||
window.replay.set_position(window.replay.duration_s() * 0.4)
|
||||
window.arrow_panel.set_view_mode("recorded")
|
||||
|
||||
Reference in New Issue
Block a user