Defines the step variable for parameter step types 'lin', 'log' and 'list'. :param stepVar: step variable :type stepVar: str, sympy.Symbol :Example: >>> # Create an instance of the instruction object >>> my_instr = instruction() >>> # Defin
(self, stepVar)
| 725 | return |
| 726 | |
| 727 | def setStepVar(self, stepVar): |
| 728 | """ |
| 729 | Defines the step variable for parameter step types 'lin', 'log' and 'list'. |
| 730 | |
| 731 | :param stepVar: step variable |
| 732 | :type stepVar: str, sympy.Symbol |
| 733 | |
| 734 | :Example: |
| 735 | |
| 736 | >>> # Create an instance of the instruction object |
| 737 | >>> my_instr = instruction() |
| 738 | >>> # Define the circuit parameter 'alpha' as step variable: |
| 739 | >>> my_instr.setStepVar('alpha') |
| 740 | >>> # Enable parameter stepping |
| 741 | >>> my_instr.stepOn() |
| 742 | |
| 743 | :note: |
| 744 | |
| 745 | A list with names (*sympy.Symbol*) that can be used as stepping |
| 746 | parameter is obtained as follows: |
| 747 | |
| 748 | :Example: |
| 749 | |
| 750 | >>> # Create an instance of the instruction object |
| 751 | >>> my_instr = instruction() |
| 752 | >>> # check a netlist file and use the circuit from this file for this |
| 753 | >>> # instruction: |
| 754 | >>> my_instr.setCircuit('my_circuit.cir') |
| 755 | >>> # print the list with names of all parameters that can be stepped: |
| 756 | >>> print instr.circuit.params + list(instr.circuit.parDefs.keys()) |
| 757 | """ |
| 758 | self.stepVar = stepVar |
| 759 | self.checkStepVar() |
| 760 | return |
| 761 | |
| 762 | def checkStepVar(self): |
| 763 | """ |
nothing calls this directly
no test coverage detected