def dictMatchScore_0(d):
    import sys
    score = 0
    steps = 0
    from bases import score_Examination
    steps += 1
    score_temp = lib.score_generic(d,
                                   "CopyCtToDensityTableFromAnotherCbctImage")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = lib.score_generic(d.get("value"), "EquipmentInfo")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = score_Examination.get_score(d.get("value").get("value"))
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    return float(score) / float(steps)
def dictMatchScore_0(d):
    import sys
    score = 0
    steps = 0
    from bases import score_Examination
    steps += 1
    score_temp = lib.score_generic(d, "CropImageStackAndStoreAsNewExamination")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = score_Examination.get_score(d.get("value"))
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    return float(score) / float(steps)
Exemplo n.º 3
0
def dictMatchScore_0(d):
    import sys
    score = 0
    steps = 0
    from bases import score_Examination
    steps += 1
    score_temp = lib.score_generic(d, "GetStoredDicomTagValueForVerification")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = score_Examination.get_score(d.get("value"))
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    return float(score) / float(steps)
def dictMatchScore_0(d):
    import sys
    score = 0
    steps = 0
    from bases import score_Examination
    steps += 1
    score_temp = lib.score_generic(
        d, "GetAffineTransformationParametersGivenCenterOfRotation")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = score_Examination.get_score(d.get("value"))
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    return float(score) / float(steps)
def dictMatchScore_0(d):
    import sys
    score = 0
    steps = 0
    from bases import score_Examination
    steps += 1
    score_temp = lib.score_generic(
        d, "SetTreatmentPositionAlignmentRegistration")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = score_Examination.get_score(d.get("value"))
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    return float(score) / float(steps)
def dictMatchScore_0(d):
    import sys
    score = 0
    steps = 0
    from bases import score_Examination
    steps += 1
    score_temp = lib.score_generic(d, "GetResampledPixelData")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = lib.score_generic(d.get("value"), "ImageStack")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = lib.score_generic(d.get("value").get("value"), "[]")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = lib.score_generic(
        d.get("value").get("value").get("value"), "Series")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = score_Examination.get_score(
        d.get("value").get("value").get("value").get("value"))
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    return float(score) / float(steps)
Exemplo n.º 7
0
def dictMatchScore_0(d):
    import sys
    score = 0
    steps = 0
    from bases import score_Examination
    steps += 1
    score_temp = lib.score_generic(d, "SetImagingSystemReference")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = lib.score_generic(d.get("value"), "EquipmentInfo")
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    steps += 1
    score_temp = score_Examination.get_score(d.get("value").get("value"))
    if score_temp == sys.maxint:
        return sys.maxint
    else:
        score += score_temp
    return float(score) / float(steps)