コード例 #1
0
def submerged_victim_removal(file, custom_id, *deductions):
    points_added = 5
    # candidate starts with 10 possible points and loses them based on performance
    for case in deductions:
        if case: points_added -= 1
    # then we add the points
    if points_added < 0: points_added = 0
    Applicant_DataFrame.add_points(file, custom_id, points_added)
コード例 #2
0
def deep_water_spinal_boarding(file, custom_id, *deductions):
    points_added = 9
    # candidate starts with 10 possible points and loses them based on performance
    for case in deductions:
        if case: points_added -= 1
    # then we add the points
    if points_added < 0: points_added = 0
    Applicant_DataFrame.add_points(file, custom_id, points_added)
コード例 #3
0
def lap_with_tube(file, custom_id, time):
    points_added = 0
    if time < 24:
        points_added += 4
    elif 24 < time < 29:
        points_added += 3
    elif 28 < time < 32:
        points_added += 2
    else:
        points_added += 1
    Applicant_DataFrame.add_points(file, custom_id, points_added)
コード例 #4
0
def swim_laps(file, custom_id, time):
    points_added = 0
    if time < 4.00:
        points_added += 6
    elif 4.00 < time < 4.11:
        points_added += 5
    elif 4.10 < time < 4.21:
        points_added += 4
    elif 4.20 < time < 4.31:
        points_added += 3
    elif 4.30 < time < 4.46:
        points_added += 2
    elif 4.45 < time < 4.56:
        points_added += 1
    else:
        points_added = 0
    Applicant_DataFrame.add_points(file, custom_id, points_added)
コード例 #5
0
def brick_retrieval(file, custom_id, time):
    points_added = 0
    if time < 1.00:
        points_added += 7
    elif 1.00 < time < 1.07:
        points_added += 6
    elif 1.06 < time < 1.16:
        points_added += 5
    elif 1.15 < time < 1.21:
        points_added += 4
    elif 1.20 < time < 1.26:
        points_added += 3
    elif 1.25 < time < 1.31:
        points_added += 2
    else:
        points_added += 1
    Applicant_DataFrame.add_points(file, custom_id, points_added)
コード例 #6
0
def first_aid(file, custom_id, *scene_points):
    points_added = 0
    for points in scene_points:
        points_added += points
    Applicant_DataFrame.add_points(file, custom_id, points_added)
コード例 #7
0
def treading(file, custom_id, P):
    if P:
        Applicant_DataFrame.add_points(file, custom_id, 3)
コード例 #8
0
def multiple_choice(file, custom_id, points):
    Applicant_DataFrame.add_points(file, custom_id, points)
    return