1573ffeb1b1b1fc2a0c4de2969683ec1c60fbe06,ilastik/workflows/carving/splitBodyCarvingWorkflow.py,SplitBodyCarvingWorkflow,__init__,#SplitBodyCarvingWorkflow#Any#Any#Any#Any#,32

Before Change


        return self.dataSelectionApplet.topLevelOperator.ImageName

    def __init__(self, headless, workflow_cmdline_args, hintoverlayFile=None, pmapoverlayFile=None, *args, **kwargs):
        if workflow_cmdline_args:
            assert False, "Not using workflow cmdline args yet."
        
        graph = Graph()
        
        super(SplitBodyCarvingWorkflow, self).__init__(headless, *args, graph=graph, **kwargs)
        

After Change


        self._applets.append(self.splitBodyPostprocessingApplet)

        self._split_tool_params = None
        if workflow_cmdline_args:
            arg_parser = argparse.ArgumentParser(description="Specify parameters for the split-body carving workflow")
            arg_parser.add_argument("--split_tool_param_file", required=False)
            parsed_args, unused_args = arg_parser.parse_known_args(workflow_cmdline_args)
            if unused_args:
                logger.warn("Unused command-line args: {}".format( unused_args ))

            if parsed_args.split_tool_param_file is None:
                logger.warn("Missing cmd-line arg: --split_tool_param_file")
            else:
                logger.debug("Parsing split tool parameters: {}".format( parsed_args.split_tool_param_file ))
                json_parser = JsonConfigParser( SplitToolParamsSchema )
                self._split_tool_params = json_parser.parseConfigFile( parsed_args.split_tool_param_file )
    
    def onProjectLoaded(self, projectManager):
        
        Overridden from Workflow base class.  Called by the Project Manager.
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: ilastik/ilastik
Commit Name: 1573ffeb1b1b1fc2a0c4de2969683ec1c60fbe06
Time: 2013-06-20
Author: bergs@janelia.hhmi.org
File Name: ilastik/workflows/carving/splitBodyCarvingWorkflow.py
Class Name: SplitBodyCarvingWorkflow
Method Name: __init__


Project Name: stanfordnlp/stanza
Commit Name: f25d9afd2572b98c56c3f597ad8da2648cd7b663
Time: 2020-12-01
Author: horatio@gmail.com
File Name: stanza/utils/training/common.py
Class Name:
Method Name: main


Project Name: eth-cscs/reframe
Commit Name: e2b12ca3cdb6cc4fa84b1ef6b311dc8385464d3e
Time: 2018-04-22
Author: karakasis@cscs.ch
File Name: test_reframe.py
Class Name:
Method Name: