修改部分UI、修改module中心点设定、添加单独连接

This commit is contained in:
xinzhu.yin
2026-06-08 11:03:10 +08:00
parent e9a591bf6e
commit febbb28a4c
8 changed files with 201 additions and 24 deletions

View File

@@ -831,6 +831,20 @@ def test_cct(self: "PQAutomationApp", test_type, gray_data=None):
self.log_gui.log(f"使用 {len(results)} 个灰阶数据点进行色度计算", level="info")
# 屏模组测试:中心坐标直接使用本次灰阶 100% 实测值(第 1 个点)
if test_type == "screen_module":
try:
if results and len(results[0]) >= 2:
x_100 = float(results[0][0])
y_100 = float(results[0][1])
self.cct_x_ideal_var.set(f"{x_100:.6f}")
self.cct_y_ideal_var.set(f"{y_100:.6f}")
self.log_gui.log(
f"屏模组 CCT 中心采用 100% 实测值: x={x_100:.6f}, y={y_100:.6f}"
, level="success")
except Exception as e:
self.log_gui.log(f"同步屏模组100%中心坐标失败: {str(e)}", level="error")
# 提取色度坐标
cct_values = pq_algorithm.calculate_cct_from_results(results)