Beispiel #1
0
 def insertProcess(self,
                   index: int,
                   process: ProcessingPlugin,
                   autoconnectall: bool = False):
     self._processes.insert(index, process)
     process._workflow = self
     self.update()
     if autoconnectall: self.autoConnectAll()
Beispiel #2
0
 def removeProcess(self,
                   process: ProcessingPlugin = None,
                   index=None,
                   autoconnectall=False):
     if not process: process = self._processes[index]
     process._workflow = None
     self._processes.remove(process)
     if autoconnectall: self.autoConnectAll()
     self.update()
Beispiel #3
0
 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()