def flux(data, segmap, source):
    """
    Total flux in segmap.
    
    Parameters
    ----------
    
    Returns
    -------
    
    """
    return {'flux': source.get_data(data=data, segmap=segmap).sum()}
