

def get_sorted_main_channels(mean_masks, unmasked_channels):
    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

dataset/ETHPy150Open kwikteam/phy/phy/stats/clusters.py get_sorted_main_channels/original