def removeProcess(self, process: ProcessingPlugin = None, index=None, autoconnectall=False): if not process: process = self._processes[index] self._processes.remove(process) process.detach() process._workflow = None if autoconnectall: self.autoConnectAll() self.update()
def insertProcess(self, index: int, process: ProcessingPlugin, autoconnectall: bool = False): self._processes.insert(index, process) process._workflow = self self.update() if autoconnectall: self.autoConnectAll()
def addProcess(self, process: ProcessingPlugin, autoconnectall: bool = False): """ Adds a Process as a child. Parameters ---------- process: ProcessingPlugin Process to add autowireup: bool If True, connects Outputs of the previously added Process to the Inputs of process, matching names and types """ self._processes.append(process) process._workflow = self self.update() if autoconnectall: self.autoConnectAll()