From db0cd90237fd59eb64a6548d8cded1a22c58ff9e Mon Sep 17 00:00:00 2001 From: Dustella Date: Wed, 7 May 2025 23:17:08 +0800 Subject: [PATCH] fix: fix some bugs --- build.sh | 2 ++ modules/saber/planetw_plot.py | 3 +++ modules/saber/utils.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 056b5fa..6e316aa 100644 --- a/build.sh +++ b/build.sh @@ -1,3 +1,5 @@ #!/bin/bash +cd ../frontend && pnpm build && cd ../backend + pyinstaller --add-data "./res/*:res" --add-data "./res/assets/*:res/assets" ./backend.py diff --git a/modules/saber/planetw_plot.py b/modules/saber/planetw_plot.py index 5cfd395..9739775 100644 --- a/modules/saber/planetw_plot.py +++ b/modules/saber/planetw_plot.py @@ -103,6 +103,9 @@ def saber_planetw_plot( # 对每一列生成独立的子图 col = k_to_a[f'k={k}'] + # 清理上一次的图形 + plt.clf() + plt.plot(x_values, fit_df[col].values) plt.suptitle(f'k = {k} 振幅图') plt.xlabel('天') diff --git a/modules/saber/utils.py b/modules/saber/utils.py index 528fedb..92f2705 100644 --- a/modules/saber/utils.py +++ b/modules/saber/utils.py @@ -80,7 +80,7 @@ class NcData: return iter([self.dataset, self.tplatitude, self.tplongitude, self.tpaltitude, self.ktemp, self.time, self.date, self.date_time]) -ENABLE_SABER_FILTERING = True # 是否启用SABER数据的过滤 +ENABLE_SABER_FILTERING = False # 是否启用SABER数据的过滤 def data_nc_load(file_path):