Esempio n. 1
0
def beam_complexities(*condition):
    if condition:
        condition = condition[0]
    cnx = DVH_SQL()
    uids = cnx.get_unique_values('Beams',
                                 'study_instance_uid',
                                 condition,
                                 return_empty=True)
    for uid in uids:
        beam_complexity(cnx, uid)
    cnx.close()
Esempio n. 2
0
def update_all_plan_toxicity_grades(*condition):
    if condition:
        condition = condition[0]
    cnx = DVH_SQL()
    uids = cnx.get_unique_values('Plans',
                                 'study_instance_uid',
                                 condition,
                                 return_empty=True)
    for uid in uids:
        update_plan_toxicity_grades(uid)
    cnx.close()