flowpipe icon indicating copy to clipboard operation
flowpipe copied to clipboard

script to refactor inputs and outputs

Open Anton-4 opened this issue 6 years ago • 1 comments

In my project I often have the names of inputs and outputs mentioned three times:

  • once in the constructor of a node class as InputPlug("inputName", self)
  • once in the wiring node_a.outputs["outputName"] >> node_b.inputs["inputName"]
  • and once in the override of the compute method: def compute(self, inputName)

At some point I will probably write a script or maybe a pycharm integration so that changing the name in one place will replace all uses of that name as well.

Anton-4 avatar Feb 21 '19 14:02 Anton-4

Sounds like a good idea. Personally I'm using sublime, so I might look into porting your pycharm script/plugin to sublime then

PaulSchweizer avatar Feb 25 '19 08:02 PaulSchweizer