def get_wavelengths(snirf):
    """Returns a list of the channel wavelengths in the SNIRF file."""
    wavelengths = snirf["nirs"]["probe"]["wavelengths"][:]
    return wavelengths.flatten().astype(float)