From 11b3d93f0e3d1711e31248e930c5f8d6945f83d5 Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Mon, 5 Jan 2026 18:47:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=BB=A4=E6=B3=A2=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E8=BF=9B=E8=A1=8C=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E7=89=B9=E5=BE=81=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.py | 8 ++++---- mainwindow.spec | 12 +++--------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/mainwindow.py b/mainwindow.py index 7a7e3ec..b0f28fc 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -667,16 +667,16 @@ class SocketClientApp(QMainWindow): self.status_bar.showMessage("状态: 数据绘制完成") # 速度有效值 - speed_rms_value = calc_vel_pass_rms(self.scaled_data, self.sampling_rate) + speed_rms_value = calc_vel_pass_rms(data_filter, self.sampling_rate) print("速度有效值:", round(speed_rms_value, 1)) # 速度峰值 - speed_vel_p = calc_vel_p(self.scaled_data, self.sampling_rate) + speed_vel_p = calc_vel_p(data_filter, self.sampling_rate) print("速度峰值:", round(speed_vel_p, 1)) # 加速度有效值 - acc_rms = calc_acc_rms(self.scaled_data, self.sampling_rate) + acc_rms = calc_acc_rms(data_filter, self.sampling_rate) print("加速度有效值:", round(acc_rms, 1)) # 加速度峰值 - acc_p = calc_acc_p(self.scaled_data, self.sampling_rate) + acc_p = calc_acc_p(data_filter, self.sampling_rate) print("加速度峰值:", round(acc_p, 1)) self.acceleration_label_rms.setText(f"加速度有效值:{round(acc_rms, 3)} m/s^2") self.acceleration_label_pp.setText(f"加速度峰值:{round(acc_p, 3)} m/s^2") diff --git a/mainwindow.spec b/mainwindow.spec index 33aacc8..2bef3dc 100644 --- a/mainwindow.spec +++ b/mainwindow.spec @@ -1,9 +1,6 @@ # -*- mode: python ; coding: utf-8 -*- -block_cipher = None - - a = Analysis( ['mainwindow.py'], pathex=[], @@ -14,18 +11,15 @@ a = Analysis( hooksconfig={}, runtime_hooks=[], excludes=[], - win_no_prefer_redirects=False, - win_private_assemblies=False, - cipher=block_cipher, noarchive=False, + optimize=0, ) -pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) +pyz = PYZ(a.pure) exe = EXE( pyz, a.scripts, a.binaries, - a.zipfiles, a.datas, [], name='mainwindow', @@ -35,7 +29,7 @@ exe = EXE( upx=True, upx_exclude=[], runtime_tmpdir=None, - console=True, + console=False, disable_windowed_traceback=False, argv_emulation=False, target_arch=None,