From 5bbadde53e63db67f5bf4fd1992991be11f05247 Mon Sep 17 00:00:00 2001 From: Tim Winters Date: Fri, 29 Dec 2017 11:28:09 -0500 Subject: [PATCH] Don't reallocate Point, Size, or Kernel --- .../grip/ui/codegeneration/python/Pipeline.vm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/src/main/resources/edu/wpi/grip/ui/codegeneration/python/Pipeline.vm b/ui/src/main/resources/edu/wpi/grip/ui/codegeneration/python/Pipeline.vm index 0d54343509..e3effb5541 100644 --- a/ui/src/main/resources/edu/wpi/grip/ui/codegeneration/python/Pipeline.vm +++ b/ui/src/main/resources/edu/wpi/grip/ui/codegeneration/python/Pipeline.vm @@ -20,14 +20,15 @@ class $className: #foreach($input in $step.getInputs()) #if (!$input.value().matches("source[0-9]+")) #newInput($input) -#end - -#end -#foreach($output in $step.getOutputs()) - #output($output) = None +#end#end#if ($step.name() == "New_Kernel" || $step.name() == "New_Point" || $step.name() == "New_Size") + #parse("$vmLoc/step.vm") +#else #foreach($output in $step.getOutputs()) + #output($output) = None #end +#end + #end def process(self#foreach($source in $pipeline.getSources()), $source.value()#end): @@ -35,9 +36,10 @@ class $className: Runs the pipeline and sets all outputs to new values. """ #foreach($step in $pipeline.getSteps()) -#parse("$vmLoc/step.vm") - + #if ($step.name() != "New_Kernel" && $step.name() != "New_Point" && $step.name() != "New_Size") + #parse("$vmLoc/step.vm") +#end #end #foreach($step in $pipeline.getSteps()) #if($step.name() == "Switch" || $step.name() == "Valve")