重构SA打标界面
This commit is contained in:
1919
func/Module_SA_label_v2.py
Normal file
1919
func/Module_SA_label_v2.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,7 @@ from func.Module_cut_PSG import MainWindow_cut_PSG
|
||||
from func.Module_artifact_label import MainWindow_artifact_label
|
||||
from func.Module_bcg_quality_label import MainWindow_bcg_quality_label
|
||||
from func.Module_resp_quality_label import MainWindow_resp_quality_label
|
||||
from func.Module_SA_label import MainWindow_SA_label
|
||||
from func.Module_SA_label_v2 import MainWindow_SA_label
|
||||
|
||||
from func.utils.ConfigParams import Filename, Params
|
||||
from func.utils.Constants import Constants
|
||||
|
||||
@ -343,18 +343,52 @@ class Params:
|
||||
"Back": 60
|
||||
}
|
||||
}
|
||||
|
||||
SA_LABEL_NEW_EVENT_FORMAT: dict = {
|
||||
"Index": "", # 假设Epoch从1开始
|
||||
"Event type": "", # 原始事件类型为空
|
||||
"Stage": "",
|
||||
"Time": "",
|
||||
"Epoch": "",
|
||||
"Date": "",
|
||||
"Duration": "", # 计算持续时间
|
||||
"HR bef.": "",
|
||||
"HR extr.": "",
|
||||
"HR delta": "",
|
||||
"O2 bef.": "",
|
||||
"O2 min.": "",
|
||||
"O2 delta": "",
|
||||
"Body Position": "",
|
||||
"Validation": "",
|
||||
"Start": "",
|
||||
"End": "",
|
||||
"correct_Start": "",
|
||||
"correct_End":"",
|
||||
"correct_EventsType": "", # 修正事件类型为空
|
||||
"score": -1, # 默认分数为-1
|
||||
"isLabeled": -1, # 默认未标记状态
|
||||
"remark": "" # 默认备注为空
|
||||
}
|
||||
|
||||
SA_LABEL_TRANSPARENCY: float = 0.05
|
||||
SA_LABEL_BTN_PREV_SHORTCUT_KEY: str = "A"
|
||||
SA_LABEL_BTN_NEXT_SHORTCUT_KEY: str = "D"
|
||||
SA_LABEL_BTN_PREV_10s_SHORTCUT_KEY: str = "Q"
|
||||
SA_LABEL_BTN_NEXT_10s_SHORTCUT_KEY: str = "E"
|
||||
SA_LABEL_BTN_PREV_30s_SHORTCUT_KEY: str = "A"
|
||||
SA_LABEL_BTN_NEXT_30s_SHORTCUT_KEY: str = "D"
|
||||
SA_LABEL_BTN_PREV_HALF_SHORTCUT_KEY: str = "F"
|
||||
SA_LABEL_BTN_NEXT_HALF_SHORTCUT_KEY: str = "G"
|
||||
SA_LABEL_BTN_BEST_FIT_SHORTCUT_KEY: str = "X"
|
||||
SA_LABEL_BTN_EDIT_MODE_SHORTCUT_KEY: str = "Z"
|
||||
SA_LABEL_BTN_CONFIRMLABEL_SHORTCUT_KEY: str = "S"
|
||||
SA_LABEL_BTN_QUICK_REMARK_WAITINGFORTALK_SHORTCUT_KEY: str = "J"
|
||||
SA_LABEL_RADIOBUTTON_OSA_SHORTCUT_KEY: str = "1"
|
||||
SA_LABEL_RADIOBUTTON_CSA_SHORTCUT_KEY: str = "2"
|
||||
SA_LABEL_RADIOBUTTON_MSA_SHORTCUT_KEY: str = "3"
|
||||
SA_LABEL_RADIOBUTTON_HPY_SHORTCUT_KEY: str = "4"
|
||||
SA_LABEL_RADIOBUTTON_1_CLASS_SHORTCUT_KEY: str = "U"
|
||||
SA_LABEL_RADIOBUTTON_2_CLASS_SHORTCUT_KEY: str = "I"
|
||||
SA_LABEL_RADIOBUTTON_3_CLASS_SHORTCUT_KEY: str = "O"
|
||||
SA_LABEL_RADIOBUTTON_OSA_SHORTCUT_KEY: str = "7"
|
||||
SA_LABEL_RADIOBUTTON_CSA_SHORTCUT_KEY: str = "8"
|
||||
SA_LABEL_RADIOBUTTON_MSA_SHORTCUT_KEY: str = "9"
|
||||
SA_LABEL_RADIOBUTTON_HPY_SHORTCUT_KEY: str = "0"
|
||||
SA_LABEL_RADIOBUTTON_1_CLASS_SHORTCUT_KEY: str = "1"
|
||||
SA_LABEL_RADIOBUTTON_2_CLASS_SHORTCUT_KEY: str = "2"
|
||||
SA_LABEL_RADIOBUTTON_3_CLASS_SHORTCUT_KEY: str = "3"
|
||||
|
||||
|
||||
# 禁止实例化
|
||||
def __new__(cls):
|
||||
|
||||
Reference in New Issue
Block a user