def get_displacement_range(data):
    """Returns the range of displacement in the ML and AP direction"""
        
    displacements_ML, displacements_AP = data[4], data[5]   
    
    displacement_range_ML = max(displacements_ML) - min(displacements_ML)
    displacement_range_AP = max(displacements_AP) - min(displacements_AP)
    
    return displacement_range_ML, displacement_range_AP