def get_ray_num(file_path):
    """
    extract the ray's number from it's file name by removing 'ray' and '.h5' as
    well as preceding path
    """
    filename = file_path.split('/')[-1]
    num = filename[3:-3]
    return num