Skip to content

Commit 5bbadde

Browse files
committed
Don't reallocate Point, Size, or Kernel
1 parent 72d9919 commit 5bbadde

File tree

1 file changed

+9
-7
lines changed
  • ui/src/main/resources/edu/wpi/grip/ui/codegeneration/python

1 file changed

+9
-7
lines changed

ui/src/main/resources/edu/wpi/grip/ui/codegeneration/python/Pipeline.vm

+9-7
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,26 @@ class $className:
2020
#foreach($input in $step.getInputs())
2121
#if (!$input.value().matches("source[0-9]+"))
2222
#newInput($input)
23-
#end
24-
25-
#end
2623

27-
#foreach($output in $step.getOutputs())
28-
#output($output) = None
24+
#end#end#if ($step.name() == "New_Kernel" || $step.name() == "New_Point" || $step.name() == "New_Size")
25+
#parse("$vmLoc/step.vm")
2926

27+
#else #foreach($output in $step.getOutputs())
28+
#output($output) = None
3029
#end
30+
#end
31+
3132
#end
3233

3334
def process(self#foreach($source in $pipeline.getSources()), $source.value()#end):
3435
"""
3536
Runs the pipeline and sets all outputs to new values.
3637
"""
3738
#foreach($step in $pipeline.getSteps())
38-
#parse("$vmLoc/step.vm")
39-
39+
#if ($step.name() != "New_Kernel" && $step.name() != "New_Point" && $step.name() != "New_Size")
40+
#parse("$vmLoc/step.vm")
4041

42+
#end
4143
#end
4244
#foreach($step in $pipeline.getSteps())
4345
#if($step.name() == "Switch" || $step.name() == "Valve")

0 commit comments

Comments
 (0)