Commit 2e1cc03b authored by mmassaviol's avatar mmassaviol
Browse files

Back to normal behaviour

parent 601d44ba
......@@ -66,11 +66,11 @@ def generate(name):
if "steps_in" in yaml:
for step in yaml["steps_in"]:
print(step)
for step in yaml["steps_in"]:
if "rule_name" in step:
result += "def " + step["step_name"] + "_" + step["rule_name"] + "_inputs():\n"
result += "def " + step["rule_name"] + "_inputs():\n"
result += "\tinputs = dict()\n"
if "params" in step:
......@@ -78,7 +78,7 @@ def generate(name):
if "raw_" in param["origin_command"] :
result += "\tinputs[\"" + param["input_name"] + "\"] = "+param["origin_command"]+"[\""+param["origin_name"]+"\"]\n"
else:
result += "\tinputs[\"" + param["input_name"] + "\"] = rules." + param["origin_step"] + "_" + param["origin_command"] + ".output." + param["origin_name"] + "\n"
result += "\tinputs[\"" + param["input_name"] + "\"] = rules." + param["origin_command"] + ".output." + param["origin_name"] + "\n"
result += "\treturn inputs\n"
result += "\n"
......@@ -111,7 +111,7 @@ def generate(name):
if ("_PE" in step["rule_name"]):
add = "and config['SeOrPe'] == 'PE'"
result += "\tif (step == \"" + step["step_name"] + "\" " + add + " ):\n"
result += "\t\toutputs = rules." + step["step_name"] + "_" + step["rule_name"] + ".output\n"
result += "\t\toutputs = rules." + step["rule_name"] + ".output\n"
result += "\t\t\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment