cb3b10719156aec739a3cdb7db7d2ceff26abc48,pysos/sos_executor.py,Base_Executor,prepare,#Base_Executor#Any#,182

Before Change


                mo = [(x, self.match(target, x.options["provides"])) for x in self.workflow.auxiliary_sections]
                mo = [x for x in mo if x[1] is not False]
                if not mo:
                    raise RuntimeError("No step to generate target {}".format(target))
                if len(mo) > 1:
                    raise RuntimeError("Multiple steps {} to generate target {}".format(", ".join(str(x[0].options["provides"]) for x in mo), target))
                //
                // only one step, we need to process it // execute section with specified input

After Change


                mo = [(x, self.match(target, x.options["provides"])) for x in self.workflow.auxiliary_sections]
                mo = [x for x in mo if x[1] is not False]
                if not mo:
                    raise RuntimeError("No step to generate target {} requested by {}".format(target,
                        ", ".join([x.step_name() for x in dag.steps_depending_on(target)])))
                if len(mo) > 1:
                    raise RuntimeError("Multiple steps {} to generate target {}".format(", ".join(str(x[0].options["provides"]) for x in mo), target))
                //
                // only one step, we need to process it // execute section with specified input
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 13

Instances


Project Name: vatlab/SoS
Commit Name: cb3b10719156aec739a3cdb7db7d2ceff26abc48
Time: 2016-10-06
Author: ben.bog@gmail.com
File Name: pysos/sos_executor.py
Class Name: Base_Executor
Method Name: prepare


Project Name: vatlab/SoS
Commit Name: 9adc30116f36e807f6f179a3e3f4550417ce35a4
Time: 2016-10-07
Author: ben.bog@gmail.com
File Name: pysos/sos_executor.py
Class Name: Base_Executor
Method Name: run


Project Name: vatlab/SoS
Commit Name: cb3b10719156aec739a3cdb7db7d2ceff26abc48
Time: 2016-10-06
Author: ben.bog@gmail.com
File Name: pysos/sos_executor.py
Class Name: Base_Executor
Method Name: resolve_dangling_targets


Project Name: vatlab/SoS
Commit Name: 9adc30116f36e807f6f179a3e3f4550417ce35a4
Time: 2016-10-07
Author: ben.bog@gmail.com
File Name: pysos/sos_executor.py
Class Name: MP_Executor
Method Name: run