def get_sorted_main_channels(mean_masks, unmasked_channels):
    # Weighted mean of the channels, weighted by the mean masks.
    main_channels = np.argsort(mean_masks)[::-1]
    main_channels = np.array([c for c in main_channels
                              if c in unmasked_channels])
    return main_channels


#------------------------------------------------------------------------------
# Wizard measures
#------------------------------------------------------------------------------
dataset/ETHPy150Open kwikteam/phy/phy/stats/clusters.py/get_sorted_main_channels/original