Create documentation for dynamically created methods
Description
This MR works in conjunction with https://gitlab.com/qblox/packages/software/qblox_instruments_docs/-/merge_requests/235, but doesn't depend on it.
- Dynamically created methods are documented in a similar way to Qcodes parameters.
- Partial functions are also documented.
- The previously used note about partial functions is converted to numpydoc format.
- The relevant parameter is removed from the docstring
- Copy docstring decorator now has the option of adding a parameter.
- Many functions in cluster.py that used the decorator now add a
slot
parameter.
- Many functions in cluster.py that used the decorator now add a
Here is a before and after for a cluster method where the slot
parameter is added:
Here is a before and after for a cluster sequencer partial method, which is derived from a cluster module partial method, which is derived from a cluster method.
Type
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change)
Issue(s)
Related MRs
https://gitlab.com/qblox/packages/software/qblox_instruments_docs/-/merge_requests/235
Testing
Notes
Merge checklist
-
Cleaned up code (correct alligment/spacing/code-style, no dead code, etc). -
Merge request targets development
branch. -
Assigned assignee (you) and reviewers (team-members). -
Merge request has been reviewed by at least one team-members. -
All pipelines pass, including manually triggered ones.
Edited by Edmundo Ferreira