From 143b918b860d39dc80c7a081f822b6d0a1cb8033 Mon Sep 17 00:00:00 2001 From: Jiang Date: Sat, 7 Mar 2026 15:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8E=8B=E5=8A=9B=E6=B3=84?= =?UTF-8?q?=E6=BC=8F=E6=A0=87=E5=87=86=E5=B7=AE=E8=AE=A1=E7=AE=97=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/algorithms/burst_location/similarity_calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/algorithms/burst_location/similarity_calculator.py b/app/algorithms/burst_location/similarity_calculator.py index ff42828..330e88f 100644 --- a/app/algorithms/burst_location/similarity_calculator.py +++ b/app/algorithms/burst_location/similarity_calculator.py @@ -583,12 +583,12 @@ def cal_similarity_all_cos_dis( monitor_new.iloc[0] = monitor_p add_m_leak_pressure = [pressure_leak, monitor_p] add_m_leak_pressure = pd.concat(add_m_leak_pressure) - pressure_leak_std = np.std(add_m_leak_pressure, ddof=1) + pressure_leak_std = add_m_leak_pressure.std(axis=0, ddof=1) pressure_leak_std = pd.Series(pressure_leak_std, index=pressure_leak.columns) add_m_leak_pressure_all = [pressure_leak_all, monitor_p_all] add_m_leak_pressure_all = pd.concat(add_m_leak_pressure_all) - pressure_leak_std_all = np.std(add_m_leak_pressure_all, ddof=1) + pressure_leak_std_all = add_m_leak_pressure_all.std(axis=0, ddof=1) pressure_leak_std_all = pd.Series( pressure_leak_std_all, index=pressure_leak.columns )