Skip to content

Commit

Permalink
Don't reallocate Point, Size, or Kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchdukeTim committed Dec 29, 2017
1 parent 72d9919 commit 5bbadde
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,26 @@ 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):
"""
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")
Expand Down

0 comments on commit 5bbadde

Please sign in to comment.