Qcodes icon indicating copy to clipboard operation
Qcodes copied to clipboard

Look into way to mass rewrite add parameter

Open jenshnielsen opened this issue 3 years ago • 0 comments

Once #4412 lands it would be nice to transform all call of the form

self.add_parameter(name="foo", ...)

to

self.foo = self._add_parameter(name="foo" ....)
"""
Parameter foo
"""

So that parameters are documented, and completion works as expected.

Investigate how much effort it would take to do this using ast or similar. See https://stackoverflow.com/questions/36022935/rewriting-code-with-ast-python for inspiration

jenshnielsen avatar Aug 02 '22 14:08 jenshnielsen