def get_source_pos(snirf):
    """Returns a list of the position of each source in the SNIRF file."""
    pos_arr = snirf["nirs"]["probe"]["sourcePos3D"][:]
    return [pos_arr[n] for n in range(pos_arr.shape[0])]