def merge(self, cluster_ids=None):
        """Merge the selected clusters."""
        if cluster_ids is None:
            cluster_ids = self.selected
        if len(cluster_ids or []) <= 1:
            return
        self.clustering.merge(cluster_ids)
        self._global_history.action(self.clustering)
dataset/ETHPy150Open kwikteam/phy/phy/cluster/manual/gui_component.py/ManualClustering.merge/original