Compare commits
4 Commits
a5165ddbff
...
a0a8343e7c
| Author | SHA1 | Date | |
|---|---|---|---|
| a0a8343e7c | |||
| d38b12b7ff | |||
| efdbf5daae | |||
| dc9158a506 |
@ -68,7 +68,7 @@ class ConfigParams:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
PREPROCESS_INPUT_BCG_FILENAME: str = "orgBcg_Raw_"
|
PREPROCESS_INPUT_BCG_FILENAME: str = "orgBcg_Raw_"
|
||||||
PREPROCESS_INPUT_ECG_FILENAME: str = "ECG II_Raw_"
|
PREPROCESS_INPUT_ECG_FILENAME: str = "orgEcg II_Raw_"
|
||||||
PREPROCESS_SAVE_BCG_FILENAME: str = "BCG_Raw_"
|
PREPROCESS_SAVE_BCG_FILENAME: str = "BCG_Raw_"
|
||||||
PREPROCESS_SAVE_ECG_FILENAME: str = "ECG_Raw_"
|
PREPROCESS_SAVE_ECG_FILENAME: str = "ECG_Raw_"
|
||||||
PREPROCESS_SAVE_CHUNK_SIZE: int = 1000000
|
PREPROCESS_SAVE_CHUNK_SIZE: int = 1000000
|
||||||
|
|||||||
@ -10,52 +10,4 @@ class MsgBoxTypeValueNotExistError(Exception):
|
|||||||
"""MsgBox弹窗类型参数不存在异常"""
|
"""MsgBox弹窗类型参数不存在异常"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
error("MsgBox弹窗类型参数不存在异常")
|
error("MsgBox弹窗类型参数不存在异常")
|
||||||
|
|
||||||
class PreprocessModeNotExistError(Exception):
|
|
||||||
"""预处理类型不存在异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("预处理类型不存在异常")
|
|
||||||
|
|
||||||
class RPeakDetectMethodNotExistError(Exception):
|
|
||||||
"""R峰算法定位检测方法不存在异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("R峰提取检测方法不存在异常")
|
|
||||||
|
|
||||||
class JPeakDetectMethodsError(Exception):
|
|
||||||
"""J峰算法定位检测方法选择异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("J峰算法定位检测方法选择异常")
|
|
||||||
|
|
||||||
class LabelCheckModeNotExistError(Exception):
|
|
||||||
"""人工纠正类型不存在异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("人工纠正类型不存在异常")
|
|
||||||
|
|
||||||
class ArtifactLabelUnknownError(Exception):
|
|
||||||
"""体动标注未知异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("体动打标未知异常")
|
|
||||||
|
|
||||||
class BCGQualityLabelTableWidgetNotExistError(Exception):
|
|
||||||
"""BCG质量标注表格元素不存在异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("BCG质量标注表格元素不存在异常")
|
|
||||||
|
|
||||||
class RespQualityLabelOutOfIndexError(Exception):
|
|
||||||
"""呼吸可用性及间期标注数组越界异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("呼吸可用性及间期标注数组越界异常")
|
|
||||||
|
|
||||||
class RespQualityLabelTableWidgetNotExistError(Exception):
|
|
||||||
"""呼吸可用性及间期标注表格元素不存在异常"""
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
error("呼吸可用性及间期标注表格元素不存在异常")
|
|
||||||
16
run.py
16
run.py
@ -2,12 +2,11 @@ from logging import getLogger, NOTSET, FileHandler, Formatter, StreamHandler, in
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from sys import argv
|
from sys import argv
|
||||||
from time import strftime, localtime, time
|
from time import strftime, localtime, time
|
||||||
|
import os
|
||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
from PySide6.QtWidgets import QApplication
|
from PySide6.QtWidgets import QApplication
|
||||||
|
|
||||||
from func.Module_mainwindow import MainWindow
|
from func.Module_mainwindow import MainWindow
|
||||||
|
import importlib.util
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# 设置日志
|
# 设置日志
|
||||||
@ -28,6 +27,17 @@ if __name__ == '__main__':
|
|||||||
getLogger('matplotlib.font_manager').disabled = True
|
getLogger('matplotlib.font_manager').disabled = True
|
||||||
info("程序启动")
|
info("程序启动")
|
||||||
|
|
||||||
|
# 解决 Could not find the Qt platform plugin "windows"
|
||||||
|
spec = importlib.util.find_spec("PySide6")
|
||||||
|
if spec and spec.origin:
|
||||||
|
dirname = Path(spec.origin).parent
|
||||||
|
plugin_path = dirname / 'plugins' / 'platforms'
|
||||||
|
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path.__str__()
|
||||||
|
|
||||||
|
# 解决 Error #15: Initializing libiomp5md.dll
|
||||||
|
os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
|
||||||
|
|
||||||
|
|
||||||
app = QApplication(argv)
|
app = QApplication(argv)
|
||||||
app.setHighDpiScaleFactorRoundingPolicy(Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)
|
app.setHighDpiScaleFactorRoundingPolicy(Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)
|
||||||
app.styleHints().setColorScheme(Qt.ColorScheme.Light) # 强制使用浅色模式
|
app.styleHints().setColorScheme(Qt.ColorScheme.Light) # 强制使用浅色模式
|
||||||
|
|||||||
@ -40,8 +40,7 @@
|
|||||||
|-Snore_Sync_采样率.txt
|
|-Snore_Sync_采样率.txt
|
||||||
|-SpO2_Sync_采样率.txt
|
|-SpO2_Sync_采样率.txt
|
||||||
.../PSG_Text/<sampID>
|
.../PSG_Text/<sampID>
|
||||||
|-Axxxxxxx.edf
|
|-orgEcg II_Raw_采样率.txt
|
||||||
|-ECG II_Raw_采样率.txt
|
|
||||||
|-ECG_Raw_采样率.txt
|
|-ECG_Raw_采样率.txt
|
||||||
|-Rpeak_final.txt
|
|-Rpeak_final.txt
|
||||||
|-Rpeak_final_corrected.txt
|
|-Rpeak_final_corrected.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user