Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script to refactor inputs and outputs #46

Open
Anton-4 opened this issue Feb 21, 2019 · 1 comment
Open

script to refactor inputs and outputs #46

Anton-4 opened this issue Feb 21, 2019 · 1 comment

Comments

@Anton-4
Copy link
Collaborator

Anton-4 commented Feb 21, 2019

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.

@PaulSchweizer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants