def __init__(self, shell, headless, workflow_cmdline_args, project_creation_args, *args, **kwargs): # Create a graph to be shared by all operators graph = Graph() super(LayerViewerWorkflow, self).__init__(shell, headless, workflow_cmdline_args, project_creation_args, graph=graph, *args, **kwargs) self._applets = [] # Create applets self.dataSelectionApplet = DataSelectionApplet( self, "Input Data", "Input Data", supportIlastik05Import=True, forceAxisOrder='tzyxc') self.viewerApplet = LayerViewerApplet(self) self.dataExportApplet = DataExportApplet(self, "Data Export") opDataExport = self.dataExportApplet.topLevelOperator opDataExport.SelectionNames.setValue(['Raw Data', 'Other Data']) opDataSelection = self.dataSelectionApplet.topLevelOperator opDataSelection.DatasetRoles.setValue(["Raw Data", "Other Data"]) self._applets.append(self.dataSelectionApplet) self._applets.append(self.viewerApplet) self._applets.append(self.dataExportApplet) self._workflow_cmdline_args = workflow_cmdline_args
def __init__(self, headless, workflow_cmdline_args, *args, **kwargs): # Create a graph to be shared by all operators graph = Graph() super(LayerViewerWorkflow, self).__init__(headless, graph=graph, *args, **kwargs) self._applets = [] # Create applets self.dataSelectionApplet = DataSelectionApplet(self, "Input Data", "Input Data", supportIlastik05Import=True, batchDataGui=False, force5d=True) self.viewerApplet = LayerViewerApplet(self) self.dataExportApplet = DataExportApplet(self, "Data Export") opDataSelection = self.dataSelectionApplet.topLevelOperator opDataSelection.DatasetRoles.setValue( ["Raw Data", "Other Data"] ) self._applets.append( self.dataSelectionApplet ) self._applets.append( self.viewerApplet ) self._applets.append( self.dataExportApplet ) self._workflow_cmdline_args = workflow_cmdline_args
def __init__(self, shell, headless, workflow_cmdline_args, project_creation_args, *args, **kwargs): # Create a graph to be shared by all operators graph = Graph() super(LayerViewerWorkflow, self).__init__(shell, headless, workflow_cmdline_args, project_creation_args, graph=graph, *args, **kwargs) self._applets = [] # Roles # Create applets self.dataSelectionApplet = DataSelectionApplet(self, "Input Data", "Input Data") self.viewerApplet = LayerViewerApplet(self) self.dataExportApplet = DataExportApplet(self, "Data Export") opDataExport = self.dataExportApplet.topLevelOperator opDataExport.SelectionNames.setValue(ROLES) opDataSelection = self.dataSelectionApplet.topLevelOperator opDataSelection.DatasetRoles.setValue(ROLES) self._applets.append(self.dataSelectionApplet) self._applets.append(self.viewerApplet) self._applets.append(self.dataExportApplet) self._workflow_cmdline_args = workflow_cmdline_args
def __init__(self): super(LayerViewerWorkflow, self).__init__() self._applets = [] # Create a graph to be shared by all operators graph = Graph() # Create applets self.dataSelectionApplet = DataSelectionApplet( graph, "Input Data", "Input Data", supportIlastik05Import=True, batchDataGui=False) self.viewerApplet = LayerViewerApplet(graph) self._applets.append(self.dataSelectionApplet) self._applets.append(self.viewerApplet) # Connect top-level operators self.viewerApplet.topLevelOperator.RawInput.connect( self.dataSelectionApplet.topLevelOperator.Image)