def init_label_at_site(self, site, label): """Initialize label assignment at a specified site.""" if not (0 <= site < self.nb_sites) or not (0 <= label < self.nb_labels): raise IndexOutOfBoundError() _cgco.gcoInitLabelAtSite(self.handle, np.intc(site), np.intc(label))
def initLabelAtSite(self, site, label): """Initialize label assignment at a specified site.""" if not (0 <= site < self.numSites) or not (0 <= label < self.numLabels): raise IndexOutOfBoundError() _cgco.gcoInitLabelAtSite(self.handle, np.intc(site), np.intc(label))