from collections import OrderedDict
# # LANDMARKS =OrderedDict( {
# #              'nasalspine': 0.0,
# #     'choana': 0.36225048,
# #     'epiglottistip': 0.57822824,
# #              'tvc': 0.69001055,
# #     'subglottis': 0.72090906,
# # 'carina': 1.0,})
#
# LANDMARKS = OrderedDict()
# LANDMARKS['nasalspine'] = 0.0
# LANDMARKS['choana'] = 0.36225048
# LANDMARKS['epiglottic_tip'] =  0.57822824
# LANDMARKS['TVC'] = 0.69001055
# LANDMARKS['subglottis'] = 0.72090906
# LANDMARKS['carina'] = 0.998







LANDMARKS_Airway = OrderedDict()
LANDMARKS_Airway['choana'] = 0.0
LANDMARKS_Airway['epiglottic_tip'] = 0.33865608739117586
LANDMARKS_Airway['TVC'] = 0.513932286549439
LANDMARKS_Airway['subglottis'] = 0.5623815762769692
LANDMARKS_Airway['carina'] = 0.998



LANDMARKS_AFQ = OrderedDict()
LANDMARKS_AFQ['10'] = 10
LANDMARKS_AFQ['30'] = 30
LANDMARKS_AFQ['50'] = 50
LANDMARKS_AFQ['70'] = 70
LANDMARKS_AFQ['90'] = 90
LANDMARKS_AFQ['100'] = 100


LANDMARKS_TOY = OrderedDict()
#LANDMARKS_TOY[0] = 1e-2
LANDMARKS_TOY[1] = 1
LANDMARKS_TOY[3] = 3
LANDMARKS_TOY[5] = 5
LANDMARKS_TOY[7] = 7
LANDMARKS_TOY[9] = 9
LANDMARKS_TOY[10] = 10 - 1e-2


LANDMARKS = OrderedDict()
LANDMARKS["Airway"] = LANDMARKS_Airway
LANDMARKS["AFQ"] = LANDMARKS_AFQ
LANDMARKS["ToyData"] = LANDMARKS_TOY

DICT_TGT_UNIT = {}
DICT_TGT_UNIT_Airway = {'csa': "[mm$^2$]", 'AGE': "[month]", 'WEIGHT': '[kg]', 'HEIGHT': "[cm]"}
DICT_TGT_UNIT_OASISBrain = {"nWBV": "", "AGE": "[year]", "SES": "", "MMSE": "", "CDR": ""}
DICT_TGT_UNIT_ToyData = {"Y": "", "C1": "", "C2": ""}
DICT_TGT_UNIT['Airway'] = DICT_TGT_UNIT_Airway
DICT_TGT_UNIT["OASISBrain"] = DICT_TGT_UNIT_OASISBrain
DICT_TGT_UNIT["ToyData"] = DICT_TGT_UNIT_ToyData

# 显示名称映射（用于图表标签）
DICT_DISPLAY_NAMES = {}
DICT_DISPLAY_NAMES_Airway = {'csa': 'CSA', 'AGE': 'AGE', 'WEIGHT': 'WEIGHT', 'HEIGHT': 'HEIGHT'}
DICT_DISPLAY_NAMES_OASISBrain = {"nWBV": "nWBV", "AGE": "AGE", "SES": "SES", "MMSE": "MMSE", "CDR": "CDR"}
DICT_DISPLAY_NAMES_ToyData = {"Y": "Y", "C1": "C1", "C2": "C2"}
DICT_DISPLAY_NAMES['Airway'] = DICT_DISPLAY_NAMES_Airway
DICT_DISPLAY_NAMES["OASISBrain"] = DICT_DISPLAY_NAMES_OASISBrain
DICT_DISPLAY_NAMES["ToyData"] = DICT_DISPLAY_NAMES_ToyData



