This commit is contained in:
2026-06-06 15:13:23 +08:00
parent 494515463d
commit 949801198e
3 changed files with 11 additions and 11 deletions

View File

@@ -189,7 +189,7 @@ class Decoder_main(threading.Thread):
self.b_notch, self.a_notch = signal.iirnotch(50 / (self.device_info['sample_rate']/2), 30) # 50Hz工频陷波250是采样率30是质量因子
self.b_design = signal.firwin(65, [bandPass_low / (self.device_info['sample_rate']/2), bandPass_high / (self.device_info['sample_rate']/2)], pass_zero=False) # 设计8-30Hz带通滤波器
fileName = 'Model_' + datetime.now().strftime('%Y-%m-%d-%H-%M-%S')
filePath = './online_Models/'
filePath = os.path.join(get_root_path(), MODEL_FOLDER) + os.sep
for old_pth in glob.glob(os.path.join(filePath, '*.pth')):
os.remove(old_pth)
self.modelPath = ''.join([filePath, fileName, '.pth'])