feat(autocal): 完善标定记录检查流程与UV轮廓显示

补齐传感器身份、稳定段检查引导和未完成试验诊断,并保存采集轮廓快照。通过60项相关测试、已有记录读取及代码和文档检查。
This commit is contained in:
ykcheungab
2026-10-11 20:15:04 +08:00
parent 432f45325f
commit d06501d7d5
17 changed files with 719 additions and 141 deletions
@@ -61,6 +61,7 @@ _SCOPED_ENUMS = {
"TextElideMode",
"TextFlag",
"AspectRatioMode",
"WindowType",
),
"QTableWidget": ("SelectionMode", "EditTrigger", "SelectionBehavior"),
"QSizePolicy": ("Policy",),
@@ -160,6 +161,12 @@ def test_no_module_uses_an_unscoped_enum():
)
def test_window_type_guard_accepts_scoped_values_but_rejects_legacy_values(tmp_path):
path = tmp_path / "window_flags.py"
path.write_text("flag = Qt.WindowType.Widget\nlegacy = Qt.Widget\n", encoding="utf-8")
assert _unscoped_enum_references(path) == ["Qt.Widget"]
def test_the_controller_interface_is_qt_free():
"""The controller and its guards stay importable from a headless process.